摘要: 在$apply方法中存在脏检查,首先apply方法会触发evel方法,当evel方法解析成功后,会去触发digest方法,digest方法会触发watch方法。 $watch(watchFn,watchAction,deepWatch) watchFn: angular表达式或函数的字符串 watc 阅读全文
posted @ 2018-05-02 21:46 pikzas 阅读(137) 评论(0) 推荐(0) 编辑