我想在我的jsp方法中使用keyname

时间:2017-10-11 10:45:37

标签: angularjs

$rootScope.masterLoad=function(keyName){


       console.log("inside masterLoad method!");                   
       var param = $.param({
              data:angular.toJson({"keyName":keyName})
            });
        var handlerSuccess=function(response){
            console.log(response);
            $scope.form = response;
            /*if(response.status=="success")
              {
                  var result=JSON.parse(response.data);
                  var len = result.length;
                  for (var i = 0;  i < len; i++) {
                      if(result[i].status=="success")
                          alert("Data save successfully");
                    }

              }else{
                  alert(response.message);
              }*/
            //console.log(masterData);
            };
            saveFetchFactory.loadMaster(param).success(handlerSuccess);

   };

我希望他们在我的jsp方法中使用keyname。我怎么能通过?

0 个答案:

没有答案