angularjs 在html頁面裏面傳個參數 在js裏面獲取進行接受,而後在後臺操做

<a id="{{item.pt_id}}" href="#" ng-click="doDelete($event.target)">刪除</a> get

 

$scope.doDelete = function(target){string


                $scope.filterKeys.pt_id = $( target ).attr("id");
            
                if($scope.filterKeys.pt_id!=undefined){
                    if(confirm("肯定刪除該信息?")){
                        $http.get(con.host + "delete", {params: $scope.filterKeys}).success(function (data) {it

                           // alert(JSON.stringify(data));
                            $scope.doQuery();
                        })
                   }
                }io

        }event

相關文章
相關標籤/搜索