html
<p class="alert" ng-show="myForm.phone.$invalid"><i class="icon ico-msg"></i>{{hint1}}</p>
js
Myapp.controller("Login",function($http,$scope){
/*$scope.sendCaptcha=function(){*/
$http.post("response/sendCaptcha.json"
).success(
hint1='请输入正确验证码'
)
})
总是提示我fn is not function 这是为什么呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
语法问题,success回调里是有个方法function