firefox中的angularjs $ http删除方法问题 [英] Issue with angularjs $http delete method in firefox

查看:76
本文介绍了firefox中的angularjs $ http删除方法问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我一直在谷歌搜索,但解决方案尚未找到。我正在编写一种方法来删除ng-grid中的记录。这在IE和Chrome中运行良好,但在Firefox中无效。它看起来是类型中止操作的例外,但在控制台中没有例外。



以下是我的代码块。

Hi All,
I have been searching in the google world but the solution not yet find. I am writing a method to delete a record in the ng-grid. This works great in IE and Chrome, but not working in firefox. It looks an exception of type aborting the operation but no exception in the console.

The following is my code block.

$scope.delete = function (row) {
              $scope.id = $scope.myData[row.rowIndex].EmpID;
              $http({
                  method: 'DELETE',
                  url: '/api/Values/Delete/',
                  ContentType: 'application/json',
                  params: {id1:$scope.id} // pass in data as strings
              }).success(function (data) {              
              }).error(function (data) {
              });
          }



任何人都可以指导我解决问题。


Any one could you please guide me to solve the problem.

推荐答案

范围.delete = function(row){
scope.delete = function (row) {


scope.id =
scope.id =


scope.myData [row.rowIndex] .EmpID;
scope.myData[row.rowIndex].EmpID;


这篇关于firefox中的angularjs $ http删除方法问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆