请问该如何解决ie9下 对angularjs scope对象 不支持"$apply?

如何解决ie9下 对angularjs scope对象 不支持"$apply


狐的传说
浏览 901回答 4
4回答

芜湖不芜

解决方案:var el=$(this);$scope.$apply(function () {$scope.currentChallenge.comments.push({"user": $scope.currentUser,"message": el.val()});});

开满天机

解决方案: var el=$(this); $scope.$apply(function () { $scope.currentChallenge.comments.push({ "user": $scope.currentUser, "message": el.val() }); });
打开App,查看更多内容
随时随地看视频慕课网APP