{"id":2161,"date":"2025-03-01T10:27:20","date_gmt":"2025-03-01T02:27:20","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=2161"},"modified":"2025-03-01T10:27:20","modified_gmt":"2025-03-01T02:27:20","slug":"javascript-%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/01\/javascript-%e5%ba%93\/","title":{"rendered":"JavaScript \u5e93"},"content":{"rendered":"\n<p>JavaScript \u5e93\u7684\u4f7f\u7528\u9700\u8981\u5bf9\u5e93\u7684\u9009\u62e9\u3001\u4f7f\u7528\u573a\u666f\u3001\u529f\u80fd\u6269\u5c55\u4ee5\u53ca\u4e0e\u5176\u4ed6\u6280\u672f\u7684\u7ed3\u5408\u6709\u6df1\u5165\u4e86\u89e3\u3002\u968f\u7740\u524d\u7aef\u5f00\u53d1\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cJavaScript \u5e93\u4e5f\u5728\u4e0d\u65ad\u66f4\u65b0\u548c\u6f14\u8fdb\u3002\u8981\u7cfb\u7edf\u5b66\u4e60 JavaScript \u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u638c\u63e1\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>JavaScript \u5e93\u7684\u57fa\u7840\u6982\u5ff5<\/strong><\/h3>\n\n\n\n<p>JavaScript \u5e93\u662f\u5f00\u53d1\u8005\u4e3a\u89e3\u51b3\u5e38\u89c1\u5f00\u53d1\u95ee\u9898\u800c\u9884\u5148\u5199\u597d\u7684\u4ee3\u7801\u96c6\u5408\uff0c\u5b83\u4eec\u901a\u5e38\u7528\u4e8e\u7b80\u5316\u548c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u5e38\u89c1\u7684 JavaScript \u5e93\u63d0\u4f9b\u4e86\u5bf9 DOM \u64cd\u4f5c\u3001\u4e8b\u4ef6\u7ba1\u7406\u3001\u52a8\u753b\u3001AJAX \u8bf7\u6c42\u3001\u5de5\u5177\u51fd\u6570\u7b49\u7684\u5c01\u88c5\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5e93\u4e0e\u6846\u67b6\u7684\u533a\u522b\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JavaScript \u5e93<\/strong>\uff1a\u662f\u4e00\u7ec4\u53ef\u4ee5\u7528\u6765\u7b80\u5316\u5f00\u53d1\u4efb\u52a1\u7684\u51fd\u6570\u548c\u5bf9\u8c61\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u4f7f\u7528\u5e93\u4e2d\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0cjQuery\u3001Lodash\u3001Axios \u7b49\u3002<\/li>\n\n\n\n<li><strong>JavaScript \u6846\u67b6<\/strong>\uff1a\u6bd4\u5e93\u66f4\u4e3a\u5b8c\u6574\u548c\u4e25\u683c\uff0c\u901a\u5e38\u5305\u542b\u4e86\u7ea6\u5b9a\u7684\u9879\u76ee\u7ed3\u6784\u548c\u5f00\u53d1\u6a21\u5f0f\u3002\u6846\u67b6\u51b3\u5b9a\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u67b6\u6784\uff0c\u800c\u5f00\u53d1\u8005\u53ea\u9700\u9075\u5faa\u6846\u67b6\u7684\u89c4\u8303\u8fdb\u884c\u5f00\u53d1\u3002\u4f8b\u5982\uff0cReact\u3001Vue.js\u3001Angular \u7b49\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u5e38\u89c1 JavaScript \u5e93\u7684\u5b66\u4e60\u4e0e\u638c\u63e1<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>jQuery<\/strong><\/h4>\n\n\n\n<p>jQuery \u662f\u6700\u5e7f\u6cdb\u4f7f\u7528\u7684 JavaScript \u5e93\u4e4b\u4e00\u3002\u5b83\u7b80\u5316\u4e86 DOM \u64cd\u4f5c\u3001\u4e8b\u4ef6\u7ed1\u5b9a\u3001\u52a8\u753b\u6548\u679c\u548c AJAX \u8bf7\u6c42\u7b49\u529f\u80fd\uff0c\u5c24\u5176\u5728\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u4e0a\u63d0\u4f9b\u4e86\u5de8\u5927\u7684\u5e2e\u52a9\u3002<\/p>\n\n\n\n<p><strong>\u5b66\u4e60\u91cd\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>DOM \u64cd\u4f5c<\/strong>\uff1a\u5982\u4f55\u7528 jQuery \u9009\u62e9 DOM \u5143\u7d20\u5e76\u64cd\u4f5c\u5b83\u4eec\uff0c\u5982 <code>.html()<\/code>\u3001<code>.val()<\/code>\u3001<code>.css()<\/code> \u7b49\u3002<\/li>\n\n\n\n<li><strong>\u4e8b\u4ef6\u7ed1\u5b9a<\/strong>\uff1a\u5982\u4f55\u7ed1\u5b9a\u548c\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u4e8b\u4ef6\uff0c\u5982 <code>.click()<\/code>\u3001<code>.on()<\/code>\u3001<code>.hover()<\/code> \u7b49\u3002<\/li>\n\n\n\n<li><strong>\u52a8\u753b\u6548\u679c<\/strong>\uff1a\u5982\u4f55\u4f7f\u7528 <code>.fadeIn()<\/code>\u3001<code>.fadeOut()<\/code>\u3001<code>.animate()<\/code> \u7b49\u5b9e\u73b0\u52a8\u753b\u6548\u679c\u3002<\/li>\n\n\n\n<li><strong>AJAX \u8bf7\u6c42<\/strong>\uff1a\u5982\u4f55\u4f7f\u7528 <code>$.ajax()<\/code>\u3001<code>$.get()<\/code> \u548c <code>$.post()<\/code> \u53d1\u8d77\u5f02\u6b65\u8bf7\u6c42\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e38\u89c1\u7528\u6cd5<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u4f7f\u7528 jQuery \u9009\u62e9 DOM \u5143\u7d20\u5e76\u4fee\u6539\u5185\u5bb9\n$('#myButton').click(function() {\n    $('#message').text('\u6309\u94ae\u5df2\u70b9\u51fb\uff01').fadeIn();\n});\n\n\/\/ AJAX \u8bf7\u6c42\n$.get('https:\/\/api.example.com\/data', function(response) {\n    console.log(response);\n});<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Lodash<\/strong><\/h4>\n\n\n\n<p>Lodash \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684 JavaScript \u5de5\u5177\u5e93\uff0c\u63d0\u4f9b\u4e86\u5bf9\u6570\u7ec4\u3001\u5bf9\u8c61\u3001\u51fd\u6570\u7b49\u6570\u636e\u7ed3\u6784\u7684\u5e38\u7528\u64cd\u4f5c\u3002\u5b83\u5728\u6027\u80fd\u4f18\u5316\u548c\u51fd\u6570\u5f0f\u7f16\u7a0b\u65b9\u9762\u975e\u5e38\u4f18\u79c0\u3002<\/p>\n\n\n\n<p><strong>\u5b66\u4e60\u91cd\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u7ec4\u64cd\u4f5c<\/strong>\uff1a\u5982 <code>_.map()<\/code>\u3001<code>_.filter()<\/code>\u3001<code>_.reduce()<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u5bf9\u8c61\u64cd\u4f5c<\/strong>\uff1a\u5982 <code>_.cloneDeep()<\/code>\u3001<code>_.merge()<\/code>\u3001<code>_.get()<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u51fd\u6570\u5f0f\u7f16\u7a0b<\/strong>\uff1a\u5982 <code>_.debounce()<\/code>\u3001<code>_.throttle()<\/code>\u3001<code>_.memoize()<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e38\u89c1\u7528\u6cd5<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Lodash \u793a\u4f8b\nconst numbers = &#91;1, 2, 3, 4];\nconst evenNumbers = _.filter(numbers, num =&gt; num % 2 === 0);\nconsole.log(evenNumbers);  \/\/ &#91;2, 4]<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Axios<\/strong><\/h4>\n\n\n\n<p>Axios \u662f\u4e00\u4e2a\u57fa\u4e8e Promise \u7684 HTTP \u5ba2\u6237\u7aef\u5e93\uff0c\u7528\u4e8e\u7b80\u5316\u6d4f\u89c8\u5668\u548c Node.js \u4e2d\u7684 HTTP \u8bf7\u6c42\uff0c\u7279\u522b\u9002\u7528\u4e8e\u4e0e\u540e\u7aef\u8fdb\u884c\u6570\u636e\u4ea4\u4e92\u3002<\/p>\n\n\n\n<p><strong>\u5b66\u4e60\u91cd\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GET \u8bf7\u6c42<\/strong>\uff1a\u5982\u4f55\u83b7\u53d6\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>POST \u8bf7\u6c42<\/strong>\uff1a\u5982\u4f55\u63d0\u4ea4\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>\u9519\u8bef\u5904\u7406<\/strong>\uff1a\u5982\u4f55\u6355\u83b7\u8bf7\u6c42\u9519\u8bef\u5e76\u8fdb\u884c\u5904\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e38\u89c1\u7528\u6cd5<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Axios \u8bf7\u6c42\naxios.get('https:\/\/api.example.com\/data')\n    .then(response =&gt; console.log(response.data))\n    .catch(error =&gt; console.error('Error:', error));<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Moment.js<\/strong><\/h4>\n\n\n\n<p>Moment.js \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u65e5\u671f\u548c\u65f6\u95f4\u5904\u7406\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u6613\u4e8e\u4f7f\u7528\u7684 API \u6765\u89e3\u6790\u3001\u9a8c\u8bc1\u3001\u64cd\u4f5c\u548c\u663e\u793a\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n\n\n\n<p><strong>\u5b66\u4e60\u91cd\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65e5\u671f\u89e3\u6790<\/strong>\uff1a\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u65e5\u671f\u5bf9\u8c61\u3002<\/li>\n\n\n\n<li><strong>\u65e5\u671f\u683c\u5f0f\u5316<\/strong>\uff1a\u5982\u4f55\u5c06\u65e5\u671f\u5bf9\u8c61\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32\u3002<\/li>\n\n\n\n<li><strong>\u65e5\u671f\u64cd\u4f5c<\/strong>\uff1a\u5982\u4f55\u8fdb\u884c\u65e5\u671f\u7684\u52a0\u51cf\u3001\u6bd4\u8f83\u7b49\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e38\u89c1\u7528\u6cd5<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u4f7f\u7528 Moment.js \u5904\u7406\u65e5\u671f\nlet now = moment();\nlet formattedDate = now.format('YYYY-MM-DD');\nconsole.log(formattedDate);  \/\/ \u8f93\u51fa\u5f53\u524d\u65e5\u671f<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>D3.js<\/strong><\/h4>\n\n\n\n<p>D3.js \u662f\u4e00\u4e2a\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u7684\u5e93\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u901a\u8fc7\u5c06\u6570\u636e\u7ed1\u5b9a\u5230 DOM \u5143\u7d20\u6765\u521b\u5efa\u590d\u6742\u7684\u56fe\u8868\u548c\u6570\u636e\u89c6\u56fe\u3002<\/p>\n\n\n\n<p><strong>\u5b66\u4e60\u91cd\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u7ed1\u5b9a<\/strong>\uff1a\u5982\u4f55\u5c06\u6570\u636e\u4e0e DOM \u5143\u7d20\u5173\u8054\u3002<\/li>\n\n\n\n<li><strong>\u56fe\u8868\u7ed8\u5236<\/strong>\uff1a\u5982\u4f55\u7ed8\u5236\u7ebf\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u997c\u56fe\u7b49\u3002<\/li>\n\n\n\n<li><strong>\u52a8\u753b\u4e0e\u4ea4\u4e92<\/strong>\uff1a\u5982\u4f55\u4f7f\u7528 D3.js \u52a8\u6001\u66f4\u65b0\u56fe\u8868\u548c\u6dfb\u52a0\u4ea4\u4e92\u6027\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e38\u89c1\u7528\u6cd5<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u4f7f\u7528 D3.js \u7ed8\u5236\u4e00\u4e2a\u7b80\u5355\u7684\u67f1\u72b6\u56fe\nd3.select('body').append('svg')\n    .attr('width', 200)\n    .attr('height', 200)\n  .selectAll('rect')\n    .data(&#91;30, 80, 45, 60, 20])\n    .enter().append('rect')\n    .attr('x', (d, i) =&gt; i * 40)\n    .attr('y', d =&gt; 200 - d)\n    .attr('width', 35)\n    .attr('height', d =&gt; d)\n    .attr('fill', 'blue');<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u5982\u4f55\u9009\u62e9\u548c\u4f7f\u7528 JavaScript \u5e93<\/strong><\/h3>\n\n\n\n<p>\u5728\u9009\u62e9\u5408\u9002\u7684\u5e93\u65f6\uff0c\u5f00\u53d1\u8005\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9879\u76ee\u9700\u6c42<\/strong>\uff1a\u4e0d\u540c\u7684\u5e93\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u3002\u4f8b\u5982\uff0c\u82e5\u9879\u76ee\u4e2d\u9700\u8981\u5927\u91cf\u7684\u6570\u636e\u5904\u7406\uff0cLodash \u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u9009\u62e9\uff1b\u5982\u679c\u9700\u8981\u56fe\u5f62\u6570\u636e\u53ef\u89c6\u5316\uff0cD3.js \u662f\u9996\u9009\u3002<\/li>\n\n\n\n<li><strong>\u6027\u80fd\u8981\u6c42<\/strong>\uff1a\u67d0\u4e9b\u5e93\u53ef\u80fd\u4f1a\u589e\u52a0\u9875\u9762\u7684\u52a0\u8f7d\u65f6\u95f4\u548c\u8d44\u6e90\u5360\u7528\u3002\u6bd4\u5982\uff0cjQuery \u662f\u4e00\u4e2a\u8f83\u5927\u7684\u5e93\uff0c\u5982\u679c\u4ec5\u4f7f\u7528\u5b83\u7684\u5c11\u91cf\u529f\u80fd\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6027\u80fd\u4e0a\u7684\u6d6a\u8d39\u3002<\/li>\n\n\n\n<li><strong>\u793e\u533a\u652f\u6301<\/strong>\uff1a\u9009\u62e9\u5177\u6709\u6d3b\u8dc3\u793e\u533a\u548c\u6587\u6863\u5b8c\u5584\u7684\u5e93\uff0c\u53ef\u4ee5\u786e\u4fdd\u4f60\u80fd\u83b7\u5f97\u826f\u597d\u7684\u652f\u6301\u548c\u8d44\u6e90\u3002<\/li>\n\n\n\n<li><strong>\u5b66\u4e60\u66f2\u7ebf<\/strong>\uff1a\u4e00\u4e9b\u5e93\uff08\u5982 D3.js\uff09\u5177\u6709\u8f83\u9ad8\u7684\u5b66\u4e60\u66f2\u7ebf\uff0c\u800c\u4e00\u4e9b\u5e93\uff08\u5982 jQuery\u3001Lodash\uff09\u5219\u76f8\u5bf9\u7b80\u5355\u6613\u5b66\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>JavaScript \u5e93\u7684\u9ad8\u7ea7\u6280\u5de7<\/strong><\/h3>\n\n\n\n<p>\u638c\u63e1 JavaScript \u5e93\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u7684\u51fd\u6570\u8c03\u7528\uff0c\u8fd8\u6d89\u53ca\u5982\u4f55\u4f18\u5316\u4ee3\u7801\u548c\u63d0\u5347\u5e94\u7528\u6027\u80fd\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u61d2\u52a0\u8f7d\u548c\u6309\u9700\u52a0\u8f7d<\/strong>\uff1a\u5bf9\u4e8e\u5927\u578b\u5e93\uff0c\u53ef\u4ee5\u8003\u8651\u61d2\u52a0\u8f7d\u6216\u6309\u9700\u52a0\u8f7d\uff0c\u8fd9\u6837\u53ef\u4ee5\u51cf\u5c11\u9875\u9762\u7684\u521d\u59cb\u52a0\u8f7d\u65f6\u95f4\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u52a8\u6001\u52a0\u8f7d jQuery \u6765\u53ea\u5728\u9700\u8981\u65f6\u624d\u5f15\u5165\u3002<\/li>\n\n\n\n<li><strong>\u6a21\u5757\u5316\u548c\u6253\u5305<\/strong>\uff1a\u73b0\u4ee3 JavaScript \u6784\u5efa\u5de5\u5177\uff08\u5982 Webpack\uff09\u53ef\u4ee5\u5c06\u5e93\u548c\u81ea\u5b9a\u4e49\u4ee3\u7801\u6253\u5305\u6210\u6a21\u5757\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u6027\u80fd\u3002<\/li>\n\n\n\n<li><strong>\u4ee3\u7801\u4f18\u5316<\/strong>\uff1a\u4f7f\u7528\u5408\u9002\u7684\u5de5\u5177\u51fd\u6570\uff08\u5982 Lodash \u63d0\u4f9b\u7684\u51fd\u6570\u5f0f\u7f16\u7a0b\u65b9\u6cd5\uff09\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3001\u6613\u8bfb\uff0c\u5e76\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u5b66\u4e60\u548c\u5b9e\u8df5<\/strong><\/h3>\n\n\n\n<p>\u4e3a\u4e86\u5168\u9762\u638c\u63e1 JavaScript \u5e93\uff0c\u6700\u91cd\u8981\u7684\u6b65\u9aa4\u662f\u4e0d\u65ad\u5730\u7ec3\u4e60\u548c\u5b9e\u9645\u5e94\u7528\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u521b\u5efa\u5c0f\u578b\u9879\u76ee<\/strong>\uff1a\u5b9e\u8df5\u662f\u6700\u597d\u7684\u5b66\u4e60\u65b9\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u6784\u5efa\u4e00\u4e9b\u5c0f\u578b\u9879\u76ee\u6765\u719f\u6089\u8fd9\u4e9b\u5e93\u7684\u7528\u6cd5\uff0c\u4f8b\u5982\uff1aTodo \u5e94\u7528\u3001\u6570\u636e\u53ef\u89c6\u5316\u56fe\u8868\u3001\u5929\u6c14\u67e5\u8be2\u5e94\u7528\u7b49\u3002<\/li>\n\n\n\n<li><strong>\u9605\u8bfb\u6587\u6863\u548c\u6559\u7a0b<\/strong>\uff1a\u5927\u591a\u6570 JavaScript \u5e93\u90fd\u6709\u8be6\u7ec6\u7684\u6587\u6863\uff0c\u638c\u63e1\u6587\u6863\u4e2d\u63d0\u4f9b\u7684 API \u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n\n\n\n<li><strong>\u53c2\u4e0e\u5f00\u6e90\u793e\u533a<\/strong>\uff1a\u53c2\u4e0e\u5230 JavaScript \u5f00\u6e90\u9879\u76ee\u4e2d\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b66\u4e60\u5230\u66f4\u591a\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u6280\u5de7\uff0c\u5e76\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u5171\u540c\u8fdb\u6b65\u3002<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u603b\u7ed3<\/h3>\n\n\n\n<p>\u5168\u9762\u638c\u63e1 JavaScript \u5e93\u4e0d\u4ec5\u4ec5\u662f\u5b66\u4e60\u5982\u4f55\u8c03\u7528\u8fd9\u4e9b\u5e93\u4e2d\u7684\u51fd\u6570\uff0c\u8fd8\u9700\u8981\u6df1\u5165\u4e86\u89e3\u5b83\u4eec\u7684\u6838\u5fc3\u601d\u60f3\u3001\u9002\u7528\u573a\u666f\u4ee5\u53ca\u5982\u4f55\u4f18\u5316\u5e94\u7528\u6027\u80fd\u3002\u901a\u8fc7\u4e0d\u65ad\u5b9e\u8df5\u548c\u5b66\u4e60\uff0c\u4f60\u5c06\u80fd\u591f\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u7075\u6d3b\u9009\u62e9\u548c\u5e94\u7528\u6700\u5408\u9002\u7684\u5e93\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002\u540c\u65f6\uff0c\u4e5f\u8981\u4fdd\u6301\u5bf9\u65b0\u6280\u672f\u7684\u5173\u6ce8\uff0c\u4e0d\u65ad\u62d3\u5c55\u81ea\u5df1\u7684\u6280\u672f\u6808\u3002\u66f4\u591a\u8be6\u7ec6\u5185\u5bb9\u8bf7\u5173\u6ce8\u5176\u4ed6\u76f8\u5173\u6587\u7ae0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript \u5e93\u7684\u4f7f\u7528\u9700\u8981\u5bf9\u5e93\u7684\u9009\u62e9\u3001\u4f7f\u7528\u573a\u666f\u3001\u529f\u80fd\u6269\u5c55\u4ee5\u53ca\u4e0e\u5176\u4ed6\u6280\u672f\u7684\u7ed3\u5408\u6709\u6df1\u5165\u4e86\u89e3\u3002\u968f\u7740\u524d\u7aef\u5f00\u53d1\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-2161","post","type-post","status-publish","format-standard","hentry","category-javascript"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=2161"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2161\/revisions"}],"predecessor-version":[{"id":2162,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2161\/revisions\/2162"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=2161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=2161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=2161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}