0
此功能,我第一次稱呼它,但給這個錯誤第二次起
它再次開始工作,一旦我刷新
AngularJs「類型錯誤:v2.email是不是一個函數」
$scope.email = function(){
$scope.email=$scope.user.email;
data = { "email": $scope.email }
console.log(data);
$http.post("http://localhost:8080/"+url2, data, config).then(
function(response){
console.log(response);
$scope.reply = response.data;
},
function(response){
console.log(response);
});
}
HTML
<div class="form-group">
<label class="control-label"> Email:</label><br>
<div class="col-lg-10">
<input class="form-control" type="text" ng-model="user.email" placeholder="[email protected]">
<a href="" ng-click="email()">(Change)</a>
</div>
</div>
我想是因爲與範圍變電子郵件功能電子郵件衝突。重命名任何一個,它應該工作 – Jenny
感謝@Jenny現在的工作 –