比如大小写转换,JSON转换,forEach之类的。
伊谢尔伦2017-04-10 15:12:19
angular 会在 scope 上的对象增加一些额外的属性,通常是 $$
为前缀的东西, angular 封装的 toJSON fromJSON 方法会把这些在序列化的时候去掉,不至于造成数据的污染。
至于 forEach,文档上如是说:
Unlike ES262's Array.prototype.forEach, Providing 'undefined' or 'null' values for obj will not throw a TypeError, but rather just return the value provided.
嗯,其实看文档就好