{"id":34257,"date":"2024-11-25T12:49:02","date_gmt":"2024-11-25T04:49:02","guid":{"rendered":"https:\/\/fwq.ai\/blog\/34257\/"},"modified":"2024-11-25T12:49:02","modified_gmt":"2024-11-25T04:49:02","slug":"%e7%ae%80%e5%8d%95%e5%88%86%e6%9e%90%e4%b8%80%e4%b8%8b%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e7%9a%84%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/34257\/","title":{"rendered":"\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20"},"content":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86\u5173\u4e8e\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u5176\u4e2d\u4e3b\u8981\u7b80\u8ff0\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u539f\u7406\uff0c\u5c0f\u7a0b\u5e8f\u7684\u903b\u8f91\u5c42\u548c\u6e32\u67d3\u5c42\u662f\u5206\u5f00\u7684\uff0c\u903b\u8f91\u5c42\u8fd0\u884c\u5728jscore\u4e2d\uff0c\u5e76\u6ca1\u6709\u4e00\u4e2a\u5b8c\u6574\u6d4f\u89c8\u5668\u5bf9\u8c61\uff0c\u4e0b\u9762\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/067\/627dd5536bfec967.png\" class=\"aligncenter\" title=\"\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20\u63d2\u56fe\" alt=\"\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20\u63d2\u56fe\" \/><\/p>\n<p>\u3010\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a\u3011<\/p>\n<h2>\u4e00\u3001\u672c\u8d28<\/h2>\n<p>\u9996\u5148\uff0c\u5c0f\u7a0b\u5e8f\u7684\u903b\u8f91\u5c42\u548c\u6e32\u67d3\u5c42\u662f\u5206\u5f00\u7684\uff0c\u903b\u8f91\u5c42\u8fd0\u884c\u5728 JSCore \u4e2d\uff0c\u5e76\u6ca1\u6709\u4e00\u4e2a\u5b8c\u6574\u6d4f\u89c8\u5668\u5bf9\u8c61\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6240\u4ee5\u5c31\u6ca1\u6709\u76f8\u5173\u7684DOM API\u548cBOM API\uff0c\u8fd9\u4e00\u533a\u522b\u5bfc\u81f4\u4e86\u524d\u7aef\u5f00\u53d1\u975e\u5e38\u719f\u6089\u7684\u4e00\u4e9b\u5e93\uff0c\u4f8b\u5982 jQuery\u3001 Zepto \u7b49\uff0c\u5728\u5c0f\u7a0b\u5e8f\u4e2d\u662f\u65e0\u6cd5\u8fd0\u884c\u7684\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u540c\u65f6 JSCore \u7684\u73af\u5883\u540c NodeJS \u73af\u5883\u4e5f\u662f\u4e0d\u5c3d\u76f8\u540c\uff0c\u6240\u4ee5\u4e00\u4e9b NPM \u7684\u5305\u5728\u5c0f\u7a0b\u5e8f\u4e2d\u4e5f\u662f\u65e0\u6cd5\u8fd0\u884c\u7684\u3002<\/p>\n<p>\u603b\u4e4b\uff0cjs\u662f\u5355\u7ebf\u7a0b\u7684\uff0c\u5c0f\u7a0b\u5e8f\u662f\u53cc\u7ebf\u7a0b\uff0c\u903b\u8f91\u5c42\u548c\u89c6\u56fe\u5c42\uff08\u6e32\u67d3\u5c42\uff09\u662f\u5206\u5f00\u7684\uff0c\u540c\u65f6\u8fd0\u884c\u7684\u3002<\/p>\n<h2>\u4e8c\u3001\u901a\u4fe1<\/h2>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u53c8\u56e0\u4e3a\u5c0f\u7a0b\u5e8f\u662f\u53cc\u7ebf\u7a0b\u7684\uff0c\u4efb\u4f55\u903b\u8f91\u5c42\u548c\u89c6\u56fe\u5c42\u7684\u6570\u636e\u4f20\u9012\u90fd\u662f<span style=\"color:#fe2c24\">\u7ebf\u7a0b\u4e4b\u95f4\u7684\u901a\u4fe1<\/span>\uff0c\u6240\u4ee5\u5177\u6709\u4e00\u5b9a\u7684\u5ef6\u65f6\uff0c\u6240\u4ee5\u9875\u9762\u7684\u66f4\u65b0\u5c31\u6210\u4e86<span style=\"color:#fe2c24\">\u5f02\u6b65\u64cd\u4f5c\u3002<\/span><\/p>\n<p>\u5f02\u6b65\u4f1a\u4f7f\u5f97\u5404\u90e8\u5206\u7684\u8fd0\u884c\u65f6\u5e8f\u53d8\u5f97\u590d\u6742\u4e00\u4e9b\uff0c\u6bd4\u5982\u5728\u6e32\u67d3\u9996\u5c4f\u7684\u65f6\u5019\uff0c\u903b\u8f91\u5c42\u4e0e\u6e32\u67d3\u5c42\u4f1a\u540c\u65f6\u5f00\u59cb\u521d\u59cb\u5316\u5de5\u4f5c\uff0c\u4f46\u662f\u6e32\u67d3\u5c42\u9700\u8981\u6709\u903b\u8f91\u5c42\u7684\u6570\u636e\u624d\u80fd\u628a\u754c\u9762\u6e32\u67d3\u51fa\u6765\u3002<\/p>\n<p>\u5982\u679c\u6e32\u67d3\u5c42\u521d\u59cb\u5316\u5de5\u4f5c\u8f83\u5feb\u5b8c\u6210\uff0c\u5c31\u8981\u7b49\u903b\u8f91\u5c42\u7684\u6307\u4ee4\u624d\u80fd\u8fdb\u884c\u4e0b\u4e00\u6b65\u5de5\u4f5c\u3002<\/p>\n<p>\u6240\u4ee5\u5c0f\u7a0b\u5e8f\u7684\u751f\u547d\u5468\u671f\u5c31\u8d77\u4e86\u4f5c\u7528\uff0c\u5982\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/067\/3b1e7077b6ef2a4180862387c6d201db-0.png\" class=\"aligncenter\" title=\"\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20\u63d2\u56fe1\" alt=\"\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20\u63d2\u56fe1\" \/><\/p>\n<h2>\u4e09\u3001\u8fd0\u884c\u673a\u5236<\/h2>\n<p>\u5c0f\u7a0b\u5e8f\u542f\u52a8\u8fd0\u884c\u4e24\u79cd\u60c5\u51b5\uff1a<br \/><strong>1.\u51b7\u542f\u52a8\uff08\u91cd\u65b0\u5f00\u59cb\uff09\uff1a\u7528\u6237\u9996\u6b21\u6253\u5f00\u6216\u8005\u5c0f\u7a0b\u5e8f\u88ab\u5fae\u4fe1\u4e3b\u52a8\u9500\u6bc1\u540e\u518d\u6b21\u6253\u5f00\u7684\u60c5\u51b5\uff0c\u6b64\u65f6\u5c0f\u7a0b\u5e8f\u9700\u8981\u91cd\u65b0\u52a0\u8f7d\u542f\u52a8\uff0c\u5373\u4e3a\u51b7\u542f\u52a8\u3002<br \/> 2.\u70ed\u542f\u52a8\uff1a\u7528\u6237\u5df2\u7ecf\u6253\u5f00\u8fc7\u5c0f\u7a0b\u5e8f\uff0c\u7136\u540e\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u518d\u6b21\u6253\u5f00\u8be5\u5c0f\u7a0b\u5e8f\uff0c\u6b64\u65f6\u65e0\u9700\u91cd\u65b0\u542f\u52a8\uff0c\u53ea\u9700\u8981\u5c06\u540e\u53f0\u6001\u7684\u5c0f\u7a0b\u5e8f\u5207\u6362\u5230\u524d\u53f0\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u5c31\u662f\u70ed\u542f\u52a8\u3002<\/strong><\/p>\n<p>\u3010\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a\u3011<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86\u5173\u4e8e\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u5176\u4e2d\u4e3b\u8981\u7b80\u8ff0\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u539f\u7406\uff0c\u5c0f\u7a0b\u5e8f\u7684\u903b\u8f91\u5c42\u548c\u6e32\u67d3\u5c42\u662f\u5206\u5f00\u7684\uff0c\u903b\u8f91\u5c42\u8fd0\u884c\u5728jscore\u4e2d\uff0c\u5e76\u6ca1\u6709\u4e00\u4e2a\u5b8c\u6574\u6d4f\u89c8\u5668\u5bf9\u8c61\uff0c\u4e0b\u9762\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002 \u3010\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a\u3011 \u4e00\u3001\u672c\u8d28 \u9996\u5148\uff0c\u5c0f\u7a0b\u5e8f\u7684\u903b\u8f91\u5c42\u548c\u6e32\u67d3\u5c42\u662f\u5206\u5f00\u7684\uff0c\u903b\u8f91\u5c42\u8fd0\u884c\u5728 JSCore \u4e2d\uff0c\u5e76\u6ca1\u6709\u4e00\u4e2a\u5b8c\u6574\u6d4f\u89c8\u5668\u5bf9\u8c61\u3002 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6240\u4ee5\u5c31\u6ca1\u6709\u76f8\u5173\u7684DOM API\u548cBOM API\uff0c\u8fd9\u4e00\u533a\u522b\u5bfc\u81f4\u4e86\u524d\u7aef\u5f00\u53d1\u975e\u5e38\u719f\u6089\u7684\u4e00\u4e9b\u5e93\uff0c\u4f8b\u5982 jQuery\u3001 Zepto \u7b49\uff0c\u5728\u5c0f\u7a0b\u5e8f\u4e2d\u662f\u65e0\u6cd5\u8fd0\u884c\u7684\u3002 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u540c\u65f6 JSCore \u7684\u73af\u5883\u540c NodeJS \u73af\u5883\u4e5f\u662f\u4e0d\u5c3d\u76f8\u540c\uff0c\u6240\u4ee5\u4e00\u4e9b NPM \u7684\u5305\u5728\u5c0f\u7a0b\u5e8f\u4e2d\u4e5f\u662f\u65e0\u6cd5\u8fd0\u884c\u7684\u3002 \u603b\u4e4b\uff0cjs\u662f\u5355\u7ebf\u7a0b\u7684\uff0c\u5c0f\u7a0b\u5e8f\u662f\u53cc\u7ebf\u7a0b\uff0c\u903b\u8f91\u5c42\u548c\u89c6\u56fe\u5c42\uff08\u6e32\u67d3\u5c42\uff09\u662f\u5206\u5f00\u7684\uff0c\u540c\u65f6\u8fd0\u884c\u7684\u3002 \u4e8c\u3001\u901a\u4fe1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u53c8\u56e0\u4e3a\u5c0f\u7a0b\u5e8f\u662f\u53cc\u7ebf\u7a0b\u7684\uff0c\u4efb\u4f55\u903b\u8f91\u5c42\u548c\u89c6\u56fe\u5c42\u7684\u6570\u636e\u4f20\u9012\u90fd\u662f\u7ebf\u7a0b\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u6240\u4ee5\u5177\u6709\u4e00\u5b9a\u7684\u5ef6\u65f6\uff0c\u6240\u4ee5\u9875\u9762\u7684\u66f4\u65b0\u5c31\u6210\u4e86\u5f02\u6b65\u64cd\u4f5c\u3002 \u5f02\u6b65\u4f1a\u4f7f\u5f97\u5404\u90e8\u5206\u7684\u8fd0\u884c\u65f6\u5e8f\u53d8\u5f97\u590d\u6742\u4e00\u4e9b\uff0c\u6bd4\u5982\u5728\u6e32\u67d3\u9996\u5c4f\u7684\u65f6\u5019\uff0c\u903b\u8f91\u5c42\u4e0e\u6e32\u67d3\u5c42\u4f1a\u540c\u65f6\u5f00\u59cb\u521d\u59cb\u5316\u5de5\u4f5c\uff0c\u4f46\u662f\u6e32\u67d3\u5c42\u9700\u8981\u6709\u903b\u8f91\u5c42\u7684\u6570\u636e\u624d\u80fd\u628a\u754c\u9762\u6e32\u67d3\u51fa\u6765\u3002 \u5982\u679c\u6e32\u67d3\u5c42\u521d\u59cb\u5316\u5de5\u4f5c\u8f83\u5feb\u5b8c\u6210\uff0c\u5c31\u8981\u7b49\u903b\u8f91\u5c42\u7684\u6307\u4ee4\u624d\u80fd\u8fdb\u884c\u4e0b\u4e00\u6b65\u5de5\u4f5c\u3002 \u6240\u4ee5\u5c0f\u7a0b\u5e8f\u7684\u751f\u547d\u5468\u671f\u5c31\u8d77\u4e86\u4f5c\u7528\uff0c\u5982\u4e0b \u4e09\u3001\u8fd0\u884c\u673a\u5236 \u5c0f\u7a0b\u5e8f\u542f\u52a8\u8fd0\u884c\u4e24\u79cd\u60c5\u51b5\uff1a1.\u51b7\u542f\u52a8\uff08\u91cd\u65b0\u5f00\u59cb\uff09\uff1a\u7528\u6237\u9996\u6b21\u6253\u5f00\u6216\u8005\u5c0f\u7a0b\u5e8f\u88ab\u5fae\u4fe1\u4e3b\u52a8\u9500\u6bc1\u540e\u518d\u6b21\u6253\u5f00\u7684\u60c5\u51b5\uff0c\u6b64\u65f6\u5c0f\u7a0b\u5e8f\u9700\u8981\u91cd\u65b0\u52a0\u8f7d\u542f\u52a8\uff0c\u5373\u4e3a\u51b7\u542f\u52a8\u3002 2.\u70ed\u542f\u52a8\uff1a\u7528\u6237\u5df2\u7ecf\u6253\u5f00\u8fc7\u5c0f\u7a0b\u5e8f\uff0c\u7136\u540e\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u518d\u6b21\u6253\u5f00\u8be5\u5c0f\u7a0b\u5e8f\uff0c\u6b64\u65f6\u65e0\u9700\u91cd\u65b0\u542f\u52a8\uff0c\u53ea\u9700\u8981\u5c06\u540e\u53f0\u6001\u7684\u5c0f\u7a0b\u5e8f\u5207\u6362\u5230\u524d\u53f0\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u5c31\u662f\u70ed\u542f\u52a8\u3002 \u3010\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a\u3011 \u4ee5\u4e0a\u5c31\u662f\u7b80\u5355\u5206\u6790\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u5143\u7d20\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-34257","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/34257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=34257"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/34257\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=34257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=34257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=34257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}