{"id":7975,"date":"2023-11-28T20:08:52","date_gmt":"2023-11-28T12:08:52","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=7975"},"modified":"2023-12-02T20:00:54","modified_gmt":"2023-12-02T12:00:54","slug":"vue-zhong-shuo-shuo-ni-duiangular-zang-jian-cha-li","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/vue-zhong-shuo-shuo-ni-duiangular-zang-jian-cha-li\/","title":{"rendered":"Vue \u4e2d\u8bf4\u8bf4\u4f60\u5bf9 angular \u810f\u68c0\u67e5\u7684\u7406\u89e3\uff1f"},"content":{"rendered":"<p>AngularJS \u4f7f\u7528\u7684\u662f\u810f\u68c0\u67e5\u673a\u5236\uff08Dirty Checking\uff09\uff0c\u5b83\u662f\u4e00\u79cd\u5b9e\u73b0\u6570\u636e\u7ed1\u5b9a\u7684\u65b9\u5f0f\u3002\u5728\u810f\u68c0\u67e5\u673a\u5236\u4e2d\uff0cAngularJS \u901a\u8fc7\u6bd4\u8f83\u6570\u636e\u6a21\u578b\u7684\u5f53\u524d\u72b6\u6001\u548c\u5148\u524d\u72b6\u6001\u6765\u68c0\u6d4b\u6570\u636e\u7684\u53d8\u5316\uff0c\u5e76\u5728\u9700\u8981\u65f6\u66f4\u65b0\u89c6\u56fe\u3002<\/p>\n<h3><a id=\"%E8%84%8F%E6%A3%80%E6%9F%A5%E7%9A%84%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86%EF%BC%9A\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u810f\u68c0\u67e5\u7684\u5de5\u4f5c\u539f\u7406\uff1a<\/h3>\n<ol>\n<li>\n<p><strong>\u5faa\u73af\u68c0\u67e5\uff1a<\/strong> AngularJS \u5728\u6bcf\u4e2a digest cycle\uff08\u810f\u68c0\u67e5\u5faa\u73af\uff09\u4e2d\u904d\u5386\u6240\u6709\u7684\u76d1\u89c6\u53d8\u91cf\uff0c\u68c0\u67e5\u5b83\u4eec\u7684\u5f53\u524d\u503c\u4e0e\u5148\u524d\u503c\u662f\u5426\u6709\u53d8\u5316\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u53d8\u5316\uff1a<\/strong> \u5bf9\u4e8e\u6bcf\u4e2a\u76d1\u89c6\u53d8\u91cf\uff0cAngularJS \u68c0\u67e5\u5f53\u524d\u503c\u548c\u5148\u524d\u503c\u662f\u5426\u4e0d\u540c\u3002\u5982\u679c\u53d1\u73b0\u4e0d\u540c\uff0c\u5219\u8868\u793a\u6570\u636e\u53d1\u751f\u4e86\u53d8\u5316\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u66f4\u65b0\u89c6\u56fe\uff1a<\/strong> \u5982\u679c\u6570\u636e\u53d1\u751f\u4e86\u53d8\u5316\uff0cAngularJS \u5c06\u89e6\u53d1\u76f8\u5e94\u7684\u6570\u636e\u7ed1\u5b9a\uff0c\u66f4\u65b0\u76f8\u5173\u7684\u89c6\u56fe\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5faa\u73af\u7ec8\u6b62\uff1a<\/strong> AngularJS \u4f1a\u6301\u7eed\u8fdb\u884c digest cycle\uff0c\u76f4\u5230\u4e24\u6b21\u5faa\u73af\u4e4b\u95f4\u4e0d\u518d\u6709\u53d8\u5316\u4e3a\u6b62\uff0c\u6216\u8fbe\u5230\u6700\u5927\u5faa\u73af\u6b21\u6570\u9650\u5236\u3002<\/p>\n<\/li>\n<\/ol>\n<h3><a id=\"%E8%84%8F%E6%A3%80%E6%9F%A5%E7%9A%84%E7%89%B9%E7%82%B9%E5%92%8C%E4%BC%98%E7%BC%BA%E7%82%B9%EF%BC%9A\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u810f\u68c0\u67e5\u7684\u7279\u70b9\u548c\u4f18\u7f3a\u70b9\uff1a<\/h3>\n<ul>\n<li><strong>\u5b9e\u65f6\u6027\uff1a<\/strong> \u810f\u68c0\u67e5\u53ef\u4ee5\u6355\u83b7\u5230\u6240\u6709\u53ef\u80fd\u7684\u6570\u636e\u53d8\u5316\uff0c\u5b9e\u73b0\u5b9e\u65f6\u7684\u89c6\u56fe\u66f4\u65b0\u3002<\/li>\n<li><strong>\u6027\u80fd\u5f00\u9500\uff1a<\/strong> \u5728\u5927\u89c4\u6a21\u5e94\u7528\u4e2d\uff0c\u810f\u68c0\u67e5\u9700\u8981\u904d\u5386\u6240\u6709\u76d1\u89c6\u53d8\u91cf\uff0c\u53ef\u80fd\u5f15\u8d77\u6027\u80fd\u95ee\u9898\u3002<\/li>\n<li><strong>\u5faa\u73af\u6b21\u6570\u9650\u5236\uff1a<\/strong> AngularJS \u4e3a\u4e86\u907f\u514d\u65e0\u9650\u5faa\u73af\uff0c\u8bbe\u7f6e\u4e86\u6700\u5927\u5faa\u73af\u6b21\u6570\u9650\u5236\u3002<\/li>\n<\/ul>\n<p>\u810f\u68c0\u67e5\u673a\u5236\u5728 AngularJS 1.x \u7248\u672c\u4e2d\u4f7f\u7528\u5e7f\u6cdb\uff0c\u4f46\u5176\u6027\u80fd\u548c\u5b9e\u65f6\u6027\u65b9\u9762\u5b58\u5728\u4e00\u4e9b\u6311\u6218\uff0c\u5c24\u5176\u5728\u6570\u636e\u91cf\u8f83\u5927\u7684\u60c5\u51b5\u4e0b\u53ef\u80fd\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u3002\u56e0\u6b64\uff0c\u65b0\u4e00\u4ee3\u7684\u6846\u67b6\uff08\u5982 Angular 2+\u3001Vue.js\u3001React \u7b49\uff09\u91c7\u7528\u4e86\u66f4\u9ad8\u6548\u7684\u865a\u62df DOM \u6216\u66f4\u7cbe\u7ec6\u7684\u53d8\u66f4\u68c0\u6d4b\u673a\u5236\u6765\u63d0\u9ad8\u6027\u80fd\u548c\u54cd\u5e94\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AngularJS \u4f7f\u7528\u7684\u662f\u810f\u68c0\u67e5\u673a\u5236\uff08Dirty Checking\uff09\uff0c\u5b83\u662f\u4e00\u79cd\u5b9e\u73b0\u6570\u636e\u7ed1\u5b9a\u7684\u65b9\u5f0f\u3002\u5728\u810f\u68c0\u67e5\u673a [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[114],"tags":[],"class_list":["post-7975","post","type-post","status-publish","format-standard","hentry","category-vue"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/7975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=7975"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/7975\/revisions"}],"predecessor-version":[{"id":14008,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/7975\/revisions\/14008"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=7975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=7975"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=7975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}