为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

狐的传说 2019-09-02 17:05:02
如何解决ie9下 对angularjs scope对象 不支持"$apply
查看完整描述

4 回答

?
芜湖不芜

TA贡献1796条经验 获得超7个赞

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

查看完整回答
反对 回复 2019-09-07
?
开满天机

TA贡献1786条经验 获得超12个赞

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

查看完整回答
反对 回复 2019-09-07
  • 4 回答
  • 0 关注
  • 898 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信