["username"] => string(5) "zhang"\n ?}\n ?這個名字怎么提取出來$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去請求驗證的service,根據結果顯示是否存在? ? ? ? ? ?if($scope.username==name) {????????????????????? ? ? ? ? ? alert("123");? ? ? ? ? ?};? ? ? ? }? ? });? ? ? ?});求大神 怎么搞才行
- 3 回答
- 0 關注
- 2511 瀏覽
添加回答
舉報
0/150
提交
取消