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

芜湖不芜
TA贡献1796条经验 获得超7个赞
解决方案:
var el=$(this);
$scope.$apply(function () {
$scope.currentChallenge.comments.push({
"user": $scope.currentUser,
"message": el.val()
});
});

开满天机
TA贡献1786条经验 获得超13个赞
解决方案: var el=$(this); $scope.$apply(function () { $scope.currentChallenge.comments.push({ "user": $scope.currentUser, "message": el.val() }); });
- 4 回答
- 0 关注
- 968 浏览
添加回答
举报
0/150
提交
取消