+-
showCaptcha设置了true为什么要在页面上点击一下才能显示,和vue双向绑定有区别吗?用的1.2
<div class="ipt_con" ng-show="login.showCaptcha"></div>
$scope.login = {
showCaptcha: false,
}
$scope.connect = function () {
Service.login(phone, $scope.login.password).then(function (data) {
$scope.logining = false;
if (data.code == 0) {
...
} else {
$scope.login.showCaptcha = true;//这里置为了true为什么div需要点击才能显示,
console.log( $scope.login.showCaptcha)
}
})
}