{"id":1595,"date":"2023-09-10T00:32:17","date_gmt":"2023-09-09T16:32:17","guid":{"rendered":"https:\/\/white-night.club\/?p=1595"},"modified":"2023-11-09T11:07:53","modified_gmt":"2023-11-09T03:07:53","slug":"appdev8","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/09\/10\/appdev8\/","title":{"rendered":"\u7b2c\u4e00\u4e2aVue.js\u7a0b\u5e8f-Hello World"},"content":{"rendered":"\n<p>\u6700\u8fd1\u5728\u5b66vue3\uff08\u4ee5\u4e0b\u7b80\u79f0vue\uff0cvue2\u548cvue3\u8c8c\u4f3c\u533a\u522b\u633a\u5927\u7684\uff0c\u4ee5\u540e\u5b66\u5230vue2\u518d\u8bf4\u5427\uff09\uff0c\u53d1\u73b0\u8fd8\u662f\u5f97\u4ecehello world\u5165\u624b\u554a\u3002\uff08\u5982\u679cnginx\u4e5f\u80fd\u8fd9\u4e48\u7b80\u5355\u4ece\u4f8b\u5b50\u5165\u624b\u5c31\u597d\u4e86\uff09\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>Vue.js\u662f\u4ec0\u4e48<\/p>\n<cite><em>Vue\u7684\u7b80\u5355\u4ecb\u7ecd<\/em><\/cite><\/blockquote>\n\n\n\n<p>Vue\u662f\u7528JavaScript\u7f16\u5199\u7684\uff0c\u7528\u4e8e\u6784\u9020\u524d\u7aef\u7684MVVM\u54cd\u5e94\u5f0f\u6846\u67b6\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>MVVM\uff1a\u5373Model-View-ViewModel\u3002\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u65e2\u8981\u5c06\u540e\u7aef\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u7528\u6237\u80fd\u770b\u5230\u7684\u524d\u7aef\u9875\u9762\uff0c\u4e5f\u8981\u5c06\u770b\u5230\u7684\u9875\u9762\u8f6c\u5316\u6210\u540e\u7aef\u7684\u6570\u636e\u3002<\/cite><\/blockquote>\n\n\n\n<p>\u54cd\u5e94\u5f0f\u7b80\u5355\u6765\u8bf4\u5c31\u662f&#8211;\u4e0d\u7528\u4f60\u5237\u65b0\u9875\u9762\uff0c\u9875\u9762\u4f1a\u81ea\u5df1\u5237\u65b0\u3002\u8fd9\u70b9\u63a5\u4e0b\u6765\u8fd8\u4f1a\u63d0\u5230\u3002<\/p>\n\n\n\n<p>\u800c\u5173\u4e8evue\u7528\u5728\u54ea\uff0c\u5b98\u7f51\u7ed9\u51fa\u4e86\u5f88\u660e\u786e\u7684\u89e3\u91ca\u3002<\/p>\n\n\n\n<ul>\n<li>\u5355\u9875\u9762\u5e94\u7528 (SPA)\uff1a\u4e00\u4e9b\u5e94\u7528\u5728\u524d\u7aef\u9700\u8981\u5177\u6709\u4e30\u5bcc\u7684\u4ea4\u4e92\u6027\u3001\u8f83\u6df1\u7684\u4f1a\u8bdd\u548c\u590d\u6742\u7684\u72b6\u6001\u903b\u8f91\u3002\u6784\u5efa\u8fd9\u7c7b\u5e94\u7528\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4f7f\u7528\u8fd9\u6837\u4e00\u79cd\u67b6\u6784\uff1aVUE \u4e0d\u4ec5\u63a7\u5236\u6574\u4e2a\u9875\u9762\uff0c\u8fd8\u8d1f\u8d23\u5904\u7406\u6293\u53d6\u65b0\u6570\u636e\uff0c\u5e76\u5728\u65e0\u9700\u91cd\u65b0\u52a0\u8f7d\u7684\u524d\u63d0\u4e0b\u5904\u7406\u9875\u9762\u5207\u6362\u3002\u8fd9\u79cd\u7c7b\u578b\u7684\u5e94\u7528\u901a\u5e38\u79f0\u4e3a\u5355\u9875\u5e94\u7528 (SINGLE-PAGE APPLICATION\uff0c\u7f29\u5199\u4e3a SPA)\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6211\u7684\u7406\u89e3\uff1a\u4f60\u521d\u5b66html\u65f6\u5199\u7684\u90a3\u4e9bhtml\u6587\u6863\uff0c\u6700\u540e\u5c55\u793a\u7684\u53ea\u662f\u9759\u6001\u9875\u9762\u3002\u800c\u57fa\u4e8evue\u6846\u67b6\u6784\u5efa\u7684\u5e94\u7528\uff08\u7f51\u7ad9\u4e5f\u597d\uff0cQQ\u4e5f\u597d\uff09\uff0c\u8bf4\u767d\u4e86\u5c31\u662f\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u9664\u4e86html\u7684\u90e8\u5206\u5916\uff0c\u8fd8\u5305\u62ec\u4e86JavaScript\u548cCSS\u3002\u5b83\u5df2\u7ecf\u4e0d\u662f\u90a3\u4e2a\u201c\u5355\u7eaf\u7684\u201dhtml\u9759\u6001\u9875\u9762\u4e86\u3002<\/p>\n\n\n\n<p>\u626f\u7684\u6709\u70b9\u8fdc\uff0c\u4ecb\u7ecd\u592a\u591a\u4e5f\u6ca1\u5565\u610f\u4e49\uff0c\u4e0d\u5982\u81ea\u5df1\u641c\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u901a\u8fc7CDN\u7684\u65b9\u5f0f\u5f15\u5165Vue.js\u7a0b\u5e8f&#8211;Hello World<\/p>\n<cite><em>CDN\uff1aContent Delivery Network&#8211;\u5185\u5bb9\u5206\u53d1\u7f51\u7edc<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u6211\u76f4\u63a5\u8bf4CDN\u53ef\u80fd\u5404\u4f4d\u4e0d\u592a\u4e86\u89e3\uff0c\u4f46\u6211\u4e3e\u4e2aHello World\u7684\u4f8b\u5b50\u76f8\u4fe1\u5404\u4f4d\u5c31\u80fd\u7406\u89e3\u4e86\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u6211\u73b0\u5728\u60f3\u5199\u4e00\u4e2ahtml\u9875\u9762\uff0c\u8ba9\u5176\u663e\u793a\u201chello world\u201d\u548c\u4e00\u5f20\u8868\u60c5\u5305\u3002\u5f88\u7b80\u5355\uff0c\u76f4\u63a5\u7528img\u56fe\u50cf\u6807\u7b7e\u5c31\u884c\u4e86\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u4e5f\u5f88\u7b80\u5355\uff0c\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n\t&lt;meta charset=\"utf-8\"&gt;\n\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n\t&lt;title&gt;&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\t&lt;img src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/08\/18b0aa53599f291e9f1c311ae1f552f.jpg\"&gt;\n\t&lt;h2&gt;hello world&lt;\/h2&gt;\n\t\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>\u5b9e\u73b0\u6548\u679c\u5982\u56fe<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"720\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/317ad2e1ef02693d7c9f762e35cbf3e.png\" alt=\"\" class=\"wp-image-1605\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/317ad2e1ef02693d7c9f762e35cbf3e.png 598w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/317ad2e1ef02693d7c9f762e35cbf3e-249x300.png 249w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/figure>\n\n\n\n<p>\u90a3\u4e48\u73b0\u5728\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u6211\u4e0d\u60f3\u8ba9\u5b83\u663e\u793ahello world\u4e86\uff0c\u6211\u60f3\u6539\u6210\u201cgoodbye world\u201d\uff0c\u8be5\u600e\u4e48\u5b9e\u73b0\u5462\uff1f<\/p>\n\n\n\n<p>\u4e5f\u5f88\u7b80\u5355\uff0c\u6539\u4e00\u4e0bhtml\u6587\u6863\u7684\u4ee3\u7801\u7136\u540e\u5237\u65b0\u4e00\u4e0b\u9875\u9762\u5373\u53ef\u3002\u4f46\u8fd9\u5c31\u610f\u5473\u7740\uff0c\u8fd9\u4e2a\u9875\u9762\u662f\u9759\u6001\u7684\uff0c\u56fa\u5b9a\u7684\u3002\u53ea\u6709\u201c\u5237\u65b0\u201d\u624d\u80fd\u83b7\u53d6\u65b0\u7684\u9875\u9762\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\uff0c\u5982\u679c\u5f15\u5165\u4e86vue.js\u4e4b\u540e\uff0c\u5148\u6765\u770b\u4e0b\u5b8c\u6574\u7684\u4ee3\u7801\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n\t&lt;meta charset=\"utf-8\"&gt;\n\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n\t&lt;title&gt;&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;script src=\"https:\/\/unpkg.com\/vue@next\"&gt;&lt;\/script&gt;\n\n\t&lt;div id=\"app\"&gt;\n\t\t&lt;div&gt;&lt;img v-bind:src=\"url\"&gt;&lt;\/div&gt;\n\t\t&lt;h2&gt;{{text}}&lt;\/h2&gt;\n\t&lt;\/div&gt;\n\t\n\t&lt;script&gt;\n\t\tconst vm=Vue.createApp({\n\t\t\tdata(){\n\t\t\t\treturn{\n\t\t\t\t\turl:'https:\/\/white-night.club\/wp-content\/uploads\/2023\/08\/18b0aa53599f291e9f1c311ae1f552f.jpg',\n\t\t\t\t\ttext:'hello world',\n\t\t\t\t}\n\t\t\t}\n\t\t}).mount('#app');\n\t&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>\u53ea\u7528\u4e00\u884c\u4ee3\u7801\u5c31\u80fd\u5411\u9879\u76ee\u4e2d\u5f15\u5165vue\u6846\u67b6\u3002\u800c\u8fd9\u5c31\u662f\u901a\u8fc7CDN\u7684\u65b9\u5f0f\u6765\u5f15\u5165vue\u3002\u4e0d\u8fc7\u7531\u4e8e\u5927\u9646\u5730\u533a\u7684\u7279\u6b8a\u539f\u56e0\uff0cunpkg\u7684\u8bbf\u95ee\u901f\u5ea6\u7a0d\u5fae\u6709\u70b9\u6162\uff0c\u6240\u4ee5\u4e0d\u662f\u5f88\u5efa\u8bae\u7528unpkg\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u4f60\u5982\u679c\u5728\u56fd\u5185\u771f\u7684\u901a\u8fc7unpkg\u53bb\u5f15\u5165vue\u6846\u67b6\uff0c\u867d\u7136\u4e0d\u7528\u7ffb\u5899\uff0c\u4f46\u4f60\u81ea\u5df1\u5199\u70b9\u4e1c\u897f\u8bd5\u4e00\u4e0b\uff0c\u5c31\u80fd\u660e\u663e\u7684\u611f\u53d7\u5230\u8fd9\u4e2a\u201c\u6162\u201d\u662f\u6162\u5728\u54ea\u91cc\u4e86\u3002<\/cite><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n\t&lt;meta charset=\"utf-8\"&gt;\n\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n\t&lt;title&gt;&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;script src=\"https:\/\/unpkg.com\/vue@next\"&gt;&lt;\/script&gt;\n\n\t&lt;div id=\"app\"&gt;\n\t\t&lt;div&gt;&lt;img v-bind:src=\"url\"&gt;&lt;\/div&gt;\n\t\t&lt;h2&gt;{{text}}&lt;\/h2&gt;\n\t&lt;\/div&gt;\n\t\n\t&lt;script&gt;\n\t\tconst vm=Vue.createApp({\n\t\t\tdata(){\n\t\t\t\treturn{\n\t\t\t\t\turl:'https:\/\/white-night.club\/wp-content\/uploads\/2023\/08\/18b0aa53599f291e9f1c311ae1f552f.jpg',\n\t\t\t\t\ttext:'hello world',\n\t\t\t\t}\n\t\t\t}\n\t\t}).mount('#app');\n\t&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u5982\u679c\u60f3\u66f4\u76f4\u89c2\u7684\u4f53\u4f1avue\u5f15\u5165\u524d\u540e\u7684\u5bf9\u6bd4\uff0c\u53ef\u4ee5\u5148\u5199\u6839\u5143\u7d20\uff08div\uff09\uff0c\u518d\u5f15\u5165vue\u3002<\/cite><\/blockquote>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u5206\u6790\u4ee3\u7801<\/p>\n<cite><em>\u7b80\u5355\u7684\u5206\u6790\u4e0bvue\u7684\u4ee3\u7801<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5148\u6765\u5206\u6790\u6574\u4f53\u4ee3\u7801\uff0c\u5220\u53bb\u65e0\u5173\u9879\u53ea\u4fdd\u7559\u7ed3\u6784\u7684\u8bdd\u4ee3\u7801\u5982\u4e0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script src=\"https:\/\/unpkg.com\/vue@next\"&gt;&lt;\/script&gt;\n\n\t&lt;div id=\"app\"&gt;&lt;\/div&gt;\n\t&lt;script&gt;\n\t\tconst vm=Vue.createApp().mount('#app');\n\t&lt;\/script&gt;\n<\/code><\/pre>\n\n\n\n<p>vue\u5e94\u7528,\u90fd\u8bf4\u4e86\u662f\u5e94\u7528\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u6709\u4e00\u4e2a\u5e94\u7528\u5b9e\u4f8b\uff0c\u5728\u8fd9\u4e2a\u5b9e\u4f8b\u7684\u57fa\u7840\u4e0a\u53bb\u52a0\u8f7d\u5bf9\u5e94\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>\u800c\u521b\u5efa\u4e86\u5e94\u7528\u5b9e\u4f8b\u8fd8\u4e0d\u591f\u3002\u53ea\u6709\u5728\u8c03\u7528\u4e86.mount()\u65b9\u6cd5\u540e\uff0c\u5e94\u7528\u5b9e\u4f8b\u624d\u4f1a\u88ab\u6e32\u67d3\u51fa\u6765\uff0c\u4e5f\u5c31\u662f\u624d\u8c03\u7528\u8be5\u65b9\u6cd5\u540e\uff0c\u4f60\u8bbe\u8ba1\u7684\u90a3\u4e9b\u56fe\u7247\u554a\uff0c\u6587\u672c\u554a\u624d\u4f1a\u5c55\u793a\u51fa\u6765\u3002\u800c.mount()\u65b9\u6cd5\u63a5\u6536\u7684\u5219\u662f\u4e00\u4e2a\u201c\u5bb9\u5668\u201d\uff0c\u5bb9\u5668\u91cc\u653e\u4ec0\u4e48\u5c31\u770b\u81ea\u5df1\u9700\u6c42\u4e86\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u662fdiv\u7684\u5185\u5bb9\uff0c\u8fd9\u91ccdiv\u88ab\u5f53\u4f5c\u662fvue\u7684\u6839\u5143\u7d20\uff08\u4e5f\u88ab\u53eb\u505a\u6839\u7ec4\u4ef6\uff09\uff0cvue\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5bb9\u90fd\u4f1a\u88ab\u6302\u8f7d\u5230\u8fd9\u4e2adiv\u5185\u3002\u6bd4\u8f83\u7b80\u5355\uff0c\u53ea\u4f5c\u4e2a\u7b80\u5355\u7684\u89e3\u91ca\u5427\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div id=\"app\"&gt;\n\t\t&lt;div&gt;&lt;img v-bind:src=\"url\"&gt;&lt;\/div&gt;\n\t\t&lt;h2&gt;{{text}}&lt;\/h2&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<ul>\n<li>v-bind\uff1avue\u7684\u6307\u4ee4\u3002\u8fd9\u91cc\u662f\u5c06img\u6807\u7b7e\u7684src\u7279\u6027\u4e8e\u8868\u8fbe\u5f0furl\u8fdb\u884c\u7ed1\u5b9a\u3002\u5f53url\u7684\u5185\u5bb9\u53d8\u66f4\u65f6\uff0c\u56fe\u50cf\u7684src\u4e5f\u4f1a\u8ddf\u7740\u6539\u53d8\uff0c\u8fd9\u4e5f\u662fvue\u54cd\u5e94\u5f0f\u66f4\u65b0html\u7279\u6027\u7684\u4f53\u73b0\u3002<\/li>\n\n\n\n<li>{{text}}\uff1a\u5b98\u65b9\u672f\u8bed\u53eb\u201c\u6587\u672c\u63d2\u503c\u201d\uff0c\u8fd9\u79cd\u53cc\u5927\u62ec\u53f7\u7684\u8bed\u6cd5\u53eb\u505aMustache\u8bed\u6cd5\u3002\u548c\u4e0a\u9762\u4e00\u6837\uff0c\u4e5f\u662f\u79cd\u201c\u6570\u636e\u7ed1\u5b9a\u201d\u3002text\u5c5e\u6027\u7684\u53d8\u66f4\u4e5f\u4f1a\u5bfc\u81f4h2\u6807\u7b7e\u7684\u53d8\u66f4\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e0d\u8fc7\u66f4\u6709\u610f\u601d\u7684vue\u5bf9\u4e8e\u6570\u636e\u7ed1\u5b9a\u8fd8\u652f\u6301\u4f7f\u7528JavaScript\u7684\u8868\u8fbe\u5f0f\uff0c\u8fd9\u5757\u540e\u7eed\u4f1a\u63d0\u5230\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u662f\u521b\u5efa\u5e94\u7528\u5b9e\u4f8b\u7684\u90e8\u5206\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const vm=Vue.createApp({\n\t\t\tdata(){\n\t\t\t\treturn{\n\t\t\t\t\turl:'https:\/\/white-night.club\/wp-content\/uploads\/2023\/08\/18b0aa53599f291e9f1c311ae1f552f.jpg',\n\t\t\t\t\ttext:'hello world',\n\t\t\t\t}\n\t\t\t}\n\t\t}).mount('#app');<\/code><\/pre>\n\n\n\n<p>createAPP()\u5c31\u662f\u521b\u5efavue\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u4f8b\u3002\u5728\u8c03\u7528\u5b83\u7684\u65b9\u6cd5mount(\u201c\u67d0\u5bb9\u5668\u201d)\u540e\uff0c\u5bb9\u5668\u5185\u7684\u6240\u6709\u6570\u636e\u53d8\u5316\u90fd\u4f1a\u88abvue\u6846\u67b6\u6240\u76d1\u63a7\u3002<\/p>\n\n\n\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u628a\u4e0a\u9762\u7684div\u5bb9\u5668\u7406\u89e3\u4e3a\u524d\u7aef\u5c55\u793a\u7684\u9875\u9762\uff0c\u8fd9\u91cc\u7684data()\u51fd\u6570\u4f5c\u4e3a\u540e\u7aef\u7684\u6570\u636e\u5e93\u3002createAPP()\u5219\u662f\u642d\u5efa\u4e00\u4e2a\u80fd\u5c06\u524d\u540e\u7aef\u76f8\u4e92\u7ed1\u5b9a\u7684\u6865\u6881\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u600e\u4e48\u4f53\u4f1a\u5230vue\u5bf9\u4e8ehtml\u9875\u9762\u7684\u5f71\u54cd\uff1f<\/p>\n<cite><em>f12\u5f00\u53d1\u8005-&gt;\u63a7\u5236\u53f0(Console)<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u867d\u7136\u4e0a\u9762\u63d0\u5230\u8fc7\u4e86\u3002\u4f46\u90a3\u79cd\u5c55\u793a\u65b9\u6cd5\u4e0d\u591f\u660e\u663e\u3002\u6700\u76f4\u89c2\u7684\u65b9\u6cd5\u5c31\u662f\u5728\u4f60\u81ea\u5df1\u5199\u7684\u9875\u9762\uff08\u6bd4\u5982\u6211\u5199\u7684test.html)\u4e0a\u6309f12\u8fdb\u5165\u5f00\u53d1\u8005\uff08\u6216\u8005\u9f20\u6807\u53f3\u952e\u7136\u540e\u9009\u62e9\u201c\u68c0\u67e5\u201d\u4e5f\u884c\uff09\uff0c\u7136\u540e\u9009\u62e9\u201c\u63a7\u5236\u53f0\u201d(Console)\u3002<\/p>\n\n\n\n<p>\u7167\u7740\u56fe\u4e2d\u7684\u8f93\u5165vm.test=&#8221;Goodbye World&#8221;\u4e5f\u884c\uff0c\u8f93\u5165\u5b8c\u4e4b\u540e\u6309\u4e0b\u56de\u8f66\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0\uff1a\u5373\u4f7f\u4f60\u6ca1\u6709\u5237\u65b0\u9875\u9762\uff0c\u539f\u5148\u7684Hello World\u4e5f\u53d8\u6210\u4e86Goodbye World\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u7531\u4e8e\u4f60html\u4fdd\u5b58\u5728\u672c\u5730\uff08\u6216\u670d\u52a1\u5668\uff09\uff0c\u4e0d\u4fee\u6539\u539f\u672c\u7684html\u7684\u8bdd\u5237\u65b0\u4e00\u4e0b\u9875\u9762\u8fd8\u662f\u4f1a\u53d8\u6210\u539f\u6837\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/93a9e26254dcf92ee6a2cdafa7c7b03-1024x554.png\" alt=\"\" class=\"wp-image-1610\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/93a9e26254dcf92ee6a2cdafa7c7b03-1024x554.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/93a9e26254dcf92ee6a2cdafa7c7b03-300x162.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/93a9e26254dcf92ee6a2cdafa7c7b03-768x416.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/93a9e26254dcf92ee6a2cdafa7c7b03.png 1216w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u5207\u8fd8\u5f97\u4ece\u90a3\u4e2a\u201chello world\u201d\u8bf4\u8d77\u3002<\/p>\n","protected":false},"author":1,"featured_media":1605,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[72,51],"tags":[73,54],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1595"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=1595"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1595\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/1605"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=1595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=1595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=1595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}