When should reread of cl_crm_bol_entity and $scope.$apply be called manually

CL_CRM_BOL_ENTITY~REREAD

When should reread of cl_crm_bol_entity and $scope.$apply be called manually

CHECK line 35, scan lv_do_reread to know the logic of its assignment.

When should reread of cl_crm_bol_entity and $scope.$apply be called manually

reread will not be triggered until this flag is set as true.

scope.scope.scope.apply in Angular

When we should call scope.scope.scope.apply manually?
看一个实际例子:第14行的div绑定到了angular的模型字段message。
该应用启动后,屏幕显示第6行绑定的值:Waiting 2000ms for update。
然后启动第7行的setTimeout定时器,2秒后,执行定时器的回调函数, 在第8行将模型字段的值改成"Timeout called".

When should reread of cl_crm_bol_entity and $scope.$apply be called manually

然而,在浏览器上我们没有观察到期望中的页面刷新,UI仍然显示Waiting 2000ms for update,而不是我们期望的Timeout called。
Solution:

When should reread of cl_crm_bol_entity and $scope.$apply be called manually
When should reread of cl_crm_bol_entity and $scope.$apply be called manually

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
When should reread of cl_crm_bol_entity and $scope.$apply be called manually

When should reread of cl_crm_bol_entity and $scope.$apply be called manuallyWhen should reread of cl_crm_bol_entity and $scope.$apply be called manually 汪子熙 博客专家 发布了6829 篇原创文章 · 获赞 648 · 访问量 114万+ 他的留言板 关注
上一篇:Java知识_JavaBeans


下一篇:跑EDAS出现的问题