{"id":123,"date":"2024-12-08T20:43:31","date_gmt":"2024-12-08T12:43:31","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=123"},"modified":"2024-12-08T21:02:25","modified_gmt":"2024-12-08T13:02:25","slug":"jsx-%e4%b8%8e-vue-template-%e7%9a%84%e4%bc%98%e5%8a%a3%e5%8a%bf%e5%af%b9%e6%af%94","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2024\/12\/08\/jsx-%e4%b8%8e-vue-template-%e7%9a%84%e4%bc%98%e5%8a%a3%e5%8a%bf%e5%af%b9%e6%af%94\/","title":{"rendered":"JSX \u4e0e Vue Template \u7684\u4f18\u52a3\u52bf\u5bf9\u6bd4"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">JSX \u548c Vue Template \u662f\u4e24\u79cd\u5e38\u89c1\u7684\u524d\u7aef\u89c6\u56fe\u5c42\u8868\u8fbe\u65b9\u5f0f\uff0c\u5404\u81ea\u7684\u8bbe\u8ba1\u76ee\u6807\u4e0d\u540c\uff0c\u56e0\u6b64\u9002\u7528\u573a\u666f\u4e5f\u6709\u6240\u533a\u522b\u3002\u4ee5\u4e0b\u662f\u5b83\u4eec\u5728\u5f00\u53d1\u7075\u6d3b\u6027\u3001\u6027\u80fd\u3001\u5b66\u4e60\u66f2\u7ebf\u7b49\u65b9\u9762\u7684\u5bf9\u6bd4\u3002<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>\u5bf9\u6bd4\u9879<\/strong><\/th><th><strong>JSX<\/strong><\/th><th><strong>Vue Template<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>\u5b66\u4e60\u66f2\u7ebf<\/strong><\/td><td>\u8f83\u9661\u5ced\uff0c\u9700\u8981\u638c\u63e1 JavaScript<\/td><td>\u8f83\u5e73\u7f13\uff0c\u66f4\u63a5\u8fd1 HTML<\/td><\/tr><tr><td><strong>\u7075\u6d3b\u6027<\/strong><\/td><td>\u975e\u5e38\u9ad8\uff0c\u652f\u6301\u4efb\u610f\u590d\u6742\u903b\u8f91<\/td><td>\u8f83\u4f4e\uff0c\u53d7\u9650\u4e8e\u6a21\u677f\u8bed\u6cd5<\/td><\/tr><tr><td><strong>\u53ef\u8bfb\u6027<\/strong><\/td><td>\u5bf9\u590d\u6742 UI \u4e0d\u76f4\u89c2\uff0c\u903b\u8f91\u53ef\u80fd\u6253\u65ad\u89c6\u56fe<\/td><td>\u76f4\u89c2\uff0cHTML \u4e0e\u903b\u8f91\u5206\u79bb<\/td><\/tr><tr><td><strong>\u9002\u5408\u573a\u666f<\/strong><\/td><td>\u5927\u578b\u590d\u6742\u9879\u76ee\uff0c\u52a8\u6001\u903b\u8f91\u8f83\u591a<\/td><td>\u4e2d\u5c0f\u578b\u9879\u76ee\uff0c\u754c\u9762\u903b\u8f91\u7b80\u5355<\/td><\/tr><tr><td><strong>\u6027\u80fd\u4f18\u5316<\/strong><\/td><td>\u624b\u52a8\u4f18\u5316<\/td><td>\u5185\u7f6e\u9759\u6001\u4f18\u5316\u673a\u5236<\/td><\/tr><tr><td><strong>\u751f\u6001\u4e0e\u5de5\u5177\u652f\u6301<\/strong><\/td><td>\u4e0e React \u6df1\u5ea6\u7ed1\u5b9a\uff0c\u5de5\u5177\u94fe\u6210\u719f<\/td><td>Vue \u63d0\u4f9b\u5168\u9762\u751f\u6001\u652f\u6301<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. JSX<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4f18\u70b9<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. <strong>\u4e0e JavaScript \u7684\u6df1\u5ea6\u6574\u5408<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JSX \u662f JavaScript \u7684\u8bed\u6cd5\u6269\u5c55\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55 JavaScript \u8868\u8fbe\u5f0f\u548c\u903b\u8f91\u3002<\/li>\n\n\n\n<li>\u590d\u6742\u7684\u6761\u4ef6\u6e32\u67d3\u3001\u52a8\u6001\u5c5e\u6027\u8ba1\u7b97\u3001\u4e8b\u4ef6\u7ed1\u5b9a\u7b49\u5728 JSX \u4e2d\u66f4\u7b80\u5355\u76f4\u89c2\u3002<\/li>\n\n\n\n<li>\u66f4\u9002\u5408\u590d\u6742\u903b\u8f91\u548c\u52a8\u6001\u7ed3\u6784\u7684\u6e32\u67d3\u573a\u666f\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u6761\u4ef6\u6e32\u67d3<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const MyComponent = () =&gt; (\n  &lt;div&gt;\n    {condition ? &lt;p&gt;Condition is true&lt;\/p&gt; : &lt;p&gt;Condition is false&lt;\/p&gt;}\n  &lt;\/div&gt;\n);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">2. <strong>\u4ee3\u7801\u590d\u7528\u548c\u53ef\u7ec4\u5408\u6027<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53ef\u4ee5\u5728\u7ec4\u4ef6\u5185\u90e8\u901a\u8fc7\u51fd\u6570\u8fd4\u56de JSX \u5143\u7d20\uff0c\u5b9e\u73b0\u52a8\u6001\u6a21\u677f\u3002<\/li>\n\n\n\n<li>\u652f\u6301\u7075\u6d3b\u7684 <code>children<\/code> \u673a\u5236\uff0c\u66f4\u65b9\u4fbf\u5b9e\u73b0\u9ad8\u9636\u7ec4\u4ef6\u548c\u52a8\u6001\u5185\u5bb9\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u590d\u7528\u5b50\u7ec4\u4ef6<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const Wrapper = ({ children }) =&gt; &lt;div className=\"wrapper\"&gt;{children}&lt;\/div&gt;;\nconst App = () =&gt; (\n  &lt;Wrapper&gt;\n    &lt;h1&gt;Hello, JSX&lt;\/h1&gt;\n  &lt;\/Wrapper&gt;\n);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">3. <strong>\u7075\u6d3b\u7684\u5c5e\u6027\u64cd\u4f5c<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 JavaScript \u7684\u6269\u5c55\u8fd0\u7b97\u7b26\uff0c\u53ef\u4ee5\u8f7b\u677e\u5904\u7406\u52a8\u6001\u5c5e\u6027\u5408\u5e76\u3002<\/li>\n\n\n\n<li>\u652f\u6301\u52a8\u6001\u7ed1\u5b9a\u4e8b\u4ef6\u3001\u6761\u4ef6\u5c5e\u6027\u7b49\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u52a8\u6001\u5c5e\u6027<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const props = { id: 'button1', disabled: false };\nreturn &lt;button {...props} onClick={() =&gt; alert('Clicked!')}&gt;Click Me&lt;\/button&gt;;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">4. <strong>\u9ad8\u8868\u8fbe\u529b\u548c\u7075\u6d3b\u6027<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4efb\u4f55\u903b\u8f91\u548c\u8ba1\u7b97\u90fd\u53ef\u4ee5\u5185\u8054\u5904\u7406\uff0c\u65e0\u9700\u5c06\u903b\u8f91\u62c6\u5206\u5230\u5176\u4ed6\u51fd\u6570\u6216\u6570\u636e\u7ed3\u6784\u4e2d\u3002<\/li>\n\n\n\n<li>\u9002\u5408\u590d\u6742\u7684\u4ea4\u4e92\u5f0f\u5e94\u7528\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">5. <strong>\u5de5\u5177\u94fe\u652f\u6301\u5f3a\u5927<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0e React \u6df1\u5ea6\u7ed1\u5b9a\uff0c\u751f\u6001\u6210\u719f\uff0c\u5de5\u5177\u94fe\uff08\u5982 TypeScript \u652f\u6301\u3001Babel \u8f6c\u8bd1\uff09\u5b8c\u5584\u3002<\/li>\n\n\n\n<li>\u914d\u5408 IDE\uff0c\u53ef\u4ee5\u83b7\u5f97\u66f4\u5f3a\u7684\u7c7b\u578b\u63d0\u793a\u548c\u4ee3\u7801\u8865\u5168\u529f\u80fd\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\"><strong>\u7f3a\u70b9<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. <strong>\u4e0d\u591f\u76f4\u89c2<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5bf9\u4e8e\u7b80\u5355 UI\uff0cJSX \u4f1a\u663e\u5f97\u5197\u957f\uff0c\u6a21\u677f\u7684 HTML \u7ed3\u6784\u53ef\u80fd\u88ab\u5927\u91cf\u903b\u8f91\u4ee3\u7801\u6253\u65ad\uff0c\u964d\u4f4e\u53ef\u8bfb\u6027\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u5197\u957f\u7684\u7ed3\u6784<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const App = () =&gt; (\n  &lt;div&gt;\n    {list.length &gt; 0 ? (\n      list.map(item =&gt; &lt;p key={item.id}&gt;{item.name}&lt;\/p&gt;)\n    ) : (\n      &lt;p&gt;No items available&lt;\/p&gt;\n    )}\n  &lt;\/div&gt;\n);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">2. <strong>\u9700\u8981\u638c\u63e1\u66f4\u591a JavaScript \u77e5\u8bc6<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JSX \u7684\u7075\u6d3b\u6027\u4f9d\u8d56\u4e8e\u5f00\u53d1\u8005\u5bf9 JavaScript \u7684\u719f\u7ec3\u7a0b\u5ea6\uff0c\u4e0d\u9002\u5408\u521d\u5b66\u8005\u3002<\/li>\n\n\n\n<li>\u5728\u56e2\u961f\u534f\u4f5c\u4e2d\uff0c\u4e0d\u719f\u6089 JSX \u8bed\u6cd5\u7684\u5f00\u53d1\u8005\u53ef\u80fd\u66f4\u96be\u4e0a\u624b\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">3. <strong>\u504f\u79bb\u539f\u751f HTML \u8bed\u6cd5<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JSX \u867d\u7136\u7c7b\u4f3c HTML\uff0c\u4f46\u6709\u4e00\u4e9b\u5dee\u5f02\uff08\u5982 <code>className<\/code> \u4ee3\u66ff <code>class<\/code>\uff09\uff0c\u9700\u8981\u989d\u5916\u5b66\u4e60\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. Vue Template<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4f18\u70b9<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. <strong>\u8bed\u6cd5\u76f4\u89c2\uff0c\u6613\u4e8e\u4e0a\u624b<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u66f4\u63a5\u8fd1\u539f\u751f HTML\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u76f4\u63a5\u7f16\u5199\u6a21\u677f\u800c\u4e0d\u9700\u8981\u8fc7\u591a\u7406\u89e3 JavaScript\u3002<\/li>\n\n\n\n<li>\u9002\u5408\u56e2\u961f\u534f\u4f5c\uff0c\u8bbe\u8ba1\u5e08\u6216\u521d\u5b66\u8005\u66f4\u5bb9\u6613\u7406\u89e3\u548c\u53c2\u4e0e\u5f00\u53d1\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u7b80\u5355\u76f4\u89c2<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n  &lt;div&gt;\n    &lt;p v-if=\"condition\"&gt;Condition is true&lt;\/p&gt;\n    &lt;p v-else&gt;Condition is false&lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">2. <strong>\u6307\u4ee4\u673a\u5236\u9ad8\u6548<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u63d0\u4f9b\u5185\u7f6e\u6307\u4ee4\uff08\u5982 <code>v-if<\/code>\u3001<code>v-for<\/code>\u3001<code>v-bind<\/code>\uff09\uff0c\u9002\u5408\u5e38\u89c1\u7684\u6a21\u677f\u9700\u6c42\u3002<\/li>\n\n\n\n<li>\u6a21\u677f\u903b\u8f91\u5206\u79bb\u5230 Vue \u7684 <code>data<\/code> \u548c <code>methods<\/code> \u4e2d\uff0c\u51cf\u5c11\u89c6\u56fe\u5c42\u903b\u8f91\u590d\u6742\u6027\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">3. <strong>\u66f4\u9002\u5408\u4e2d\u5c0f\u578b\u9879\u76ee<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u4e0d\u9700\u8981\u590d\u6742\u903b\u8f91\u7684\u9879\u76ee\u4e2d\uff0cVue Template \u80fd\u66f4\u5feb\u901f\u5f00\u53d1\u51fa\u7ed3\u679c\u3002<\/li>\n\n\n\n<li>\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\uff0c\u51cf\u5c11\u4e86\u5f00\u53d1\u8005\u5728\u6a21\u677f\u5c42\u9762\u4e0a\u7684\u51b3\u7b56\u538b\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">4. <strong>\u652f\u6301\u7f16\u8bd1\u4f18\u5316<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Vue Template \u4f1a\u88ab\u7f16\u8bd1\u6210\u66f4\u9ad8\u6548\u7684\u6e32\u67d3\u51fd\u6570\uff0c\u9002\u5408\u9759\u6001\u6a21\u677f\u7684\u6027\u80fd\u4f18\u5316\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">5. <strong>\u5185\u7f6e\u7279\u6027\u4e30\u5bcc<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u652f\u6301 <code>slot<\/code> \u63d2\u69fd\u673a\u5236\uff0c\u9002\u5408\u7ec4\u4ef6\u5316\u5f00\u53d1\u3002<\/li>\n\n\n\n<li>\u63d0\u4f9b\u53cc\u5411\u7ed1\u5b9a\uff08<code>v-model<\/code>\uff09\u548c\u4e8b\u4ef6\u5904\u7406\uff08<code>@click<\/code>\uff09\u7684\u4fbf\u6377\u5199\u6cd5\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\"><strong>\u7f3a\u70b9<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. <strong>\u7075\u6d3b\u6027\u53d7\u9650<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6a21\u677f\u5c42\u53ea\u80fd\u4f7f\u7528\u6709\u9650\u7684 JavaScript \u8868\u8fbe\u5f0f\uff0c\u590d\u6742\u903b\u8f91\u9700\u8981\u62c6\u5206\u5230\u8ba1\u7b97\u5c5e\u6027\u6216\u65b9\u6cd5\u4e2d\u3002<\/li>\n\n\n\n<li>\u4e0d\u652f\u6301\u52a8\u6001\u751f\u6210\u7ec4\u4ef6\u6811\u6216\u7075\u6d3b\u7684\u6a21\u677f\u7ec4\u5408\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u9700\u8981\u62c6\u5206\u903b\u8f91<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n  &lt;div&gt;\n    &lt;p v-for=\"item in filteredList\" :key=\"item.id\"&gt;{{ item.name }}&lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;\n\n&lt;script&gt;\nexport default {\n  computed: {\n    filteredList() {\n      return this.list.filter(item =&gt; item.active);\n    }\n  }\n}\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">2. <strong>\u5bf9\u9ad8\u7ea7\u7528\u6237\u9650\u5236\u8f83\u591a<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6a21\u677f\u8bed\u6cd5\u5c01\u88c5\u4e86\u5f88\u591a\u7ec6\u8282\uff0c\u5bfc\u81f4\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff08\u5982\u52a8\u6001\u6a21\u677f\u751f\u6210\uff09\u5b9e\u73b0\u8d77\u6765\u8f83\u4e3a\u9ebb\u70e6\u3002<\/li>\n\n\n\n<li>\u5f00\u53d1\u8005\u4e0d\u80fd\u76f4\u63a5\u63a7\u5236\u5e95\u5c42\u6e32\u67d3\u903b\u8f91\uff0c\u7075\u6d3b\u6027\u4e0d\u5982 JSX\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">3. <strong>\u9879\u76ee\u89c4\u6a21\u9650\u5236<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u5927\u578b\u590d\u6742\u9879\u76ee\u4e2d\uff0cVue Template \u7684\u4ee3\u7801\u62c6\u5206\u4f1a\u589e\u52a0\u7ba1\u7406\u590d\u6742\u5ea6\uff08\u9700\u8981\u62c6\u5206\u5230\u8ba1\u7b97\u5c5e\u6027\u3001\u65b9\u6cd5\u3001\u6216\u591a\u7ec4\u4ef6\uff09\u3002<\/li>\n\n\n\n<li>\u5bf9\u52a8\u6001\u573a\u666f\uff08\u5982\u9ad8\u9636\u7ec4\u4ef6\u3001\u52a8\u6001\u63d2\u69fd\uff09\u652f\u6301\u4e0d\u5982 JSX\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u9009\u62e9\u5efa\u8bae<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u9879\u76ee\u9700\u8981\u9ad8\u5ea6\u7075\u6d3b\u6027\u548c\u590d\u6742\u903b\u8f91\u63a7\u5236\uff0c\u9009\u62e9 <strong>JSX<\/strong>\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u9879\u76ee\u66f4\u6ce8\u91cd\u5f00\u53d1\u6548\u7387\u548c\u6a21\u677f\u76f4\u89c2\u6027\uff0c\u9009\u62e9 <strong>Vue Template<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0aJSX \u4e0e Vue Template \u7684\u4f18\u52a3\u52bf\u5bf9\u6bd4\u7684\u8be6\u7ec6\u5185\u5bb9\u3002\u66f4\u591a\u4fe1\u606f\u8bf7\u5173\u6ce8\u5176\u4ed6\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JSX \u548c Vue Template \u662f\u4e24\u79cd\u5e38\u89c1\u7684\u524d\u7aef\u89c6\u56fe\u5c42\u8868\u8fbe\u65b9\u5f0f\uff0c\u5404\u81ea\u7684\u8bbe\u8ba1\u76ee\u6807\u4e0d\u540c\uff0c\u56e0\u6b64\u9002\u7528\u573a\u666f\u4e5f\u6709\u6240\u533a [&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":[47],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-47"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/123","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=123"}],"version-history":[{"count":2,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions\/126"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}