angularjs怎么获得ng-model里的value

2024-12-18 21:46:13
推荐回答(1个)
回答1:




.controller("ExampleCtr", [ '$scope', "httpServer", function ($scope, httpServer) {
$scope.pageModel = {
keyWords: ""
};
var value = $scope.pageModel.keyWords;
}])