["username"] => string(5) "zhang"\n ?}\n ?這個(gè)名字怎么提取出來(lái)$http.post('http://localhost:82/Home/user/getUser')? .success(function (response) {? ? // console.log(response);? ? var name=angular.toJson(response);? ? console.log(name);? ? // alert(response. toString() );? ? $scope.checkName = function(){? ? //用$scope.user去請(qǐng)求驗(yàn)證的service,根據(jù)結(jié)果顯示是否存在? ? ? ? ? ?if($scope.username==name) {????????????????????? ? ? ? ? ? alert("123");? ? ? ? ? ?};? ? ? ? }? ? });? ? ? ?});求大神 怎么搞才行
- 3 回答
- 0 關(guān)注
- 2509 瀏覽
添加回答
舉報(bào)
0/150
提交
取消