html
<div class="alert" ng-show="myForm.phone.$invalid"><i class="icon ico-msg"></i>{{hint1}}</div>
js
Myapp.controller("Login",function($http,$scope){
/*$scope.sendCaptcha=function(){*/
$http.post("response/sendCaptcha.json"
).success(
hint1='请输入正确验证码'
)
})
总是提示我fn is not function 这是为什么呢?
语法问题,success回调里是有个方法function