{"id":99412,"date":"2026-09-02T15:04:51","date_gmt":"2026-09-02T07:04:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/99412.html"},"modified":"2026-09-02T15:04:51","modified_gmt":"2026-09-02T07:04:51","slug":"%e5%ae%98%e5%ae%a3%ef%bc%81xiangjsoncraft-2-0-%e6%ad%a3%e5%bc%8f%e7%89%88%e4%b8%8a%e7%ba%bf%ef%bc%8c%e7%ba%afjson%e9%a9%b1%e5%8a%a8%e7%9a%84%e5%89%8d%e7%ab%af%e6%a1%86%e6%9e%b6%e6%9d%a5%e4%ba%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/99412.html","title":{"rendered":"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86"},"content":{"rendered":"<h2>\u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86<\/h2>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86<\/li>\n<li>\n<ul>\n<li>&#x1f4cc; \u6846\u67b6\u8715\u53d8\u5386\u7a0b&#xff08;\u4ece\u201c\u5356\u9c7c\u4f6c\u201d\u5230\u201c\u5efa\u5de5\u5927\u4f6c\u201d\u7684\u524d\u7aef\u7248\u72c2\u98d9&#xff09;<\/li>\n<li>&#x1f525; \u6846\u67b6\u6838\u5fc3\u4eae\u70b9&#xff08;\u7eafJSON\u9a71\u52a8&#xff0c;\u4e3b\u6253\u4e00\u4e2a\u7b80\u5355\u9ad8\u6548&#xff09;<\/li>\n<li>\n<ul>\n<li>1. \u96f6\u95e8\u69db\u4e0a\u624b&#xff0c;\u5168\u7a0bJSON\u64cd\u4f5c<\/li>\n<li>2. \u4e00\u952e\u521b\u5efa&#xff0c;\u5f00\u7bb1\u5373\u7528<\/li>\n<li>3. \u72ec\u7acb\u90e8\u7f72&#xff0c;\u65e0\u4f9d\u8d56\u51b2\u7a81<\/li>\n<li>4. \u8f7b\u91cf\u9ad8\u6548&#xff0c;\u53ef\u6269\u5c55<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f680; \u5feb\u901f\u4f53\u9a8c\u6307\u5357&#xff08;3\u5206\u949f\u4e0a\u624b&#xff09;<\/li>\n<li>&#x1f4a1; \u5199\u5728\u6700\u540e<\/li>\n<li>&#x1f4e6; \u6846\u67b6\u5730\u5740<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/p>\n<p>xiangjsoncraft \u9879\u76ee\u521b\u5efa\u6559\u7a0b<\/p>\n<\/p>\n<p>\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u8463\u7fd4&#xff0c;\u4eca\u5929\u6b63\u5f0f\u5b98\u5ba3&#xff1a;XiangJsonCraft 2.0 \u4ece\u4e00\u4e2a\u4e0d\u8d77\u773c\u7684\u201c\u5bc4\u4eba\u7bf1\u4e0b\u201d\u5c0fnpm\u5305&#xff0c;\u8715\u53d8\u4e3a\u53ef\u72ec\u7acb\u90e8\u7f72\u3001\u5f00\u7bb1\u5373\u7528\u7684\u6b63\u5f0f\u524d\u7aef\u6846\u67b6&#xff01;\u7ecf\u8fc7\u65e0\u6570\u6b21\u8e29\u5751\u3001\u8c03\u8bd5\u548c\u4f18\u5316&#xff0c;\u7ec8\u4e8e\u5b9e\u73b0\u5168\u6d41\u7a0b\u95ed\u73af&#xff0c;\u73b0\u5728\u6b63\u5f0f\u9080\u8bf7\u6240\u6709\u524d\u7aef\u5f00\u53d1\u8005\u4f53\u9a8c\u2014\u2014Write JSON, Get a Website&#xff0c;\u7528JSON\u5199\u9875\u9762&#xff0c;\u4ece\u6b64\u544a\u522b\u7e41\u7410\u7684CSS\/JS\u914d\u7f6e&#xff01;<\/p>\n<h3>&#x1f4cc; \u6846\u67b6\u8715\u53d8\u5386\u7a0b&#xff08;\u4ece\u201c\u5356\u9c7c\u4f6c\u201d\u5230\u201c\u5efa\u5de5\u5927\u4f6c\u201d\u7684\u524d\u7aef\u7248\u72c2\u98d9&#xff09;<\/h3>\n<p>\u8bf4\u8d77\u6765\u6709\u70b9\u641e\u7b11&#xff0c;\u4e5f\u6709\u70b9\u611f\u6168&#xff0c;XiangJsonCraft\u7684\u8d77\u70b9\u7279\u522b\u7b80\u5355&#xff1a;<\/p>\n<p>\u6700\u521d\u5b83\u53ea\u662f\u4e00\u4e2a\u53ea\u67094\u4e2a\u6587\u4ef6&#xff08;index.html\u3001config.json\u3001package.json\u3001renderJson.js&#xff09;\u7684\u5c0fnpm\u5305&#xff0c;\u53ea\u80fd\u201c\u5bc4\u4eba\u7bf1\u4e0b\u201d\u2014\u2014\u5b89\u88c5\u5230\u5176\u4ed6\u9879\u76ee\u7684node_modules\u91cc\u624d\u80fd\u7528&#xff0c;\u4e0d\u4ec5\u4f53\u9a8c\u7cdf\u7cd5&#xff0c;\u8fd8\u53ef\u80fd\u548cVue\u7b49\u5176\u4ed6\u6846\u67b6\u7684\u670d\u52a1\u5668\u51b2\u7a81&#xff0c;\u5b8c\u5168\u6ca1\u4e00\u70b9\u201c\u6846\u67b6\u6837\u201d\u3002<\/p>\n<p>\u4f46\u7ecf\u8fc7\u4e00\u7cfb\u5217\u201c\u6e21\u52ab\u5f0f\u201d\u6539\u9020&#xff08;\u89e3\u51b3\u4f9d\u8d56\u7f3a\u5931\u3001\u8def\u5f84\u62e6\u622a\u3001\u5168\u5c40\u53d8\u91cf\u66b4\u9732\u3001\u6253\u5305\u914d\u7f6e\u3001NPM\u53d1\u5e03\u62a5\u9519\u7b49N\u4e2a\u5751&#xff09;&#xff0c;\u5b83\u5f7b\u5e95\u9006\u88ad&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u2705 \u6709\u4e86\u4e13\u5c5e\u811a\u624b\u67b6 create-xiangjsoncraft&#xff0c;\u4e00\u952e\u521b\u5efa\u72ec\u7acb\u9879\u76ee<\/p>\n<\/li>\n<li>\n<p>\u2705 \u5b9e\u73b0\u7eafJSON\u9a71\u52a8&#xff0c;\u6837\u5f0f\u3001\u5185\u5bb9\u5168\u9760config.json\u914d\u7f6e&#xff0c;\u96f6CSS\/JS\u5f00\u53d1\u95e8\u69db<\/p>\n<\/li>\n<li>\n<p>\u2705 \u652f\u6301\u72ec\u7acb\u90e8\u7f72&#xff0c;\u81ea\u5e26\u542f\u52a8\u811a\u672c&#xff0c;\u4e00\u952e\u542f\u52a8\u670d\u52a1\u5668&#xff0c;\u6d4f\u89c8\u5668\u65e0\u62a5\u9519\u6e32\u67d3<\/p>\n<\/li>\n<li>\n<p>\u2705 \u6838\u5fc3\u6e32\u67d3\u903b\u8f91\u7a33\u5b9a&#xff0c;\u81ea\u52a8\u6ce8\u5165\u6837\u5f0f\u3001\u52a0\u8f7d\u914d\u7f6e&#xff0c;\u65b0\u624b\u4e5f\u80fd\u5feb\u901f\u4e0a\u624b<\/p>\n<\/li>\n<\/ul>\n<p>\u5c31\u50cf\u300a\u72c2\u98d9\u300b\u91cc\u7684\u9ad8\u542f\u5f3a&#xff0c;\u4ece\u5e95\u5c42\u4e00\u6b65\u6b65\u9006\u88ad&#xff0c;\u73b0\u5728\u7684XiangJsonCraft&#xff0c;\u7ec8\u4e8e\u6709\u4e86\u5c5e\u4e8e\u81ea\u5df1\u7684\u201c\u6846\u67b6\u8eab\u4efd\u201d\u2728<\/p>\n<h3>&#x1f525; \u6846\u67b6\u6838\u5fc3\u4eae\u70b9&#xff08;\u7eafJSON\u9a71\u52a8&#xff0c;\u4e3b\u6253\u4e00\u4e2a\u7b80\u5355\u9ad8\u6548&#xff09;<\/h3>\n<p>XiangJsonCraft 2.0 \u6700\u6838\u5fc3\u7684\u7406\u5ff5\u5c31\u662f\u300c\u6781\u7b80\u5f00\u53d1\u300d&#xff0c;\u65e0\u9700\u5199\u4e00\u884cCSS\u3001JS&#xff08;\u9664\u975e\u4f60\u60f3\u6269\u5c55&#xff09;&#xff0c;\u53ea\u9700\u4fee\u6539JSON\u914d\u7f6e&#xff0c;\u5c31\u80fd\u5feb\u901f\u751f\u6210\u7f51\u9875&#xff0c;\u9002\u5408\u524d\u7aef\u65b0\u624b\u3001\u540e\u7aef\u5f00\u53d1\u8005\u3001\u9700\u8981\u5feb\u901f\u642d\u5efa\u9759\u6001\u9875\u9762\u7684\u573a\u666f\u3002<\/p>\n<h4>1. \u96f6\u95e8\u69db\u4e0a\u624b&#xff0c;\u5168\u7a0bJSON\u64cd\u4f5c<\/h4>\n<p>\u6240\u6709\u6837\u5f0f\u3001\u5185\u5bb9\u90fd\u96c6\u4e2d\u5728config.json\u4e2d&#xff0c;\u65e0\u9700\u5173\u6ce8DOM\u7ed3\u6784\u3001\u6837\u5f0f\u4f18\u5148\u7ea7&#xff0c;\u4fee\u6539JSON\u5c31\u80fd\u5b9e\u65f6\u5237\u65b0\u9875\u9762&#xff0c;\u793a\u4f8b\u914d\u7f6e\u5982\u4e0b&#xff08;\u590d\u5236\u5c31\u80fd\u7528&#xff09;&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;styles&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;.title&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;fontSize&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;2rem&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;color&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;#2d3748&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;textAlign&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;center&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;marginTop&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;50px&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;.content&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;fontSize&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;1rem&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;lineHeight&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;1.8&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;maxWidth&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;800px&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;margin&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;0 auto&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;padding&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;20px&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;content&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;.title&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;value&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;&#x1f389; XiangJsonCraft 2.0 \u6b63\u5f0f\u4e0a\u7ebf&#xff01;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;isHtml&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;.content&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;value&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6&#xff0c;Write JSON, Get a Website&#xff0c;\u544a\u522b\u7e41\u7410\u914d\u7f6e&#xff0c;\u5feb\u901f\u642d\u5efa\u9759\u6001\u9875\u9762&#xff5e;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;isHtml&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>2. \u4e00\u952e\u521b\u5efa&#xff0c;\u5f00\u7bb1\u5373\u7528<\/h4>\n<p>\u81ea\u5e26\u4e13\u5c5e\u811a\u624b\u67b6&#xff0c;\u65e0\u9700\u624b\u52a8\u914d\u7f6e&#xff0c;3\u884c\u547d\u4ee4\u5c31\u80fd\u5b8c\u6210\u9879\u76ee\u521b\u5efa\u3001\u542f\u52a8&#xff0c;\u5168\u7a0b\u65e0\u62a5\u9519&#xff1a;<\/p>\n<p><span class=\"token comment\"># 1. \u4e00\u952e\u521b\u5efa\u9879\u76ee&#xff08;\u8f93\u5165\u9879\u76ee\u540d\u5373\u53ef&#xff09;<\/span><br \/>\n<span class=\"token function\">npm<\/span> create xiangjsoncraft&#064;latest my-xjc-app<\/p>\n<p><span class=\"token comment\"># 2. \u8fdb\u5165\u9879\u76ee\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> my-xjc-app<\/p>\n<p><span class=\"token comment\"># 3. \u5b89\u88c5\u4f9d\u8d56&#043;\u542f\u52a8\u9879\u76ee<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">npm<\/span> run start<\/p>\n<p>\u542f\u52a8\u540e\u8bbf\u95ee http:\/\/localhost:3000&#xff0c;\u5c31\u80fd\u770b\u5230JSON\u6e32\u67d3\u7684\u9875\u9762&#xff0c;\u4fee\u6539config.json\u5237\u65b0\u5373\u53ef\u751f\u6548&#xff0c;\u5f00\u53d1\u6548\u7387\u76f4\u63a5\u62c9\u6ee1&#xff01;<\/p>\n<h4>3. \u72ec\u7acb\u90e8\u7f72&#xff0c;\u65e0\u4f9d\u8d56\u51b2\u7a81<\/h4>\n<p>\u5f7b\u5e95\u89e3\u51b3\u6700\u521d\u201c\u5bc4\u4eba\u7bf1\u4e0b\u201d\u7684\u75db\u70b9&#xff0c;\u652f\u6301\u72ec\u7acb\u90e8\u7f72&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u81ea\u5e26live-server\u542f\u52a8\u811a\u672c&#xff0c;\u65e0\u9700\u989d\u5916\u914d\u7f6e\u670d\u52a1\u5668<\/p>\n<\/li>\n<li>\n<p>\u6838\u5fc3\u6e32\u67d3\u903b\u8f91\u6253\u5305\u4e3aUMD\u683c\u5f0f&#xff0c;\u517c\u5bb9\u6240\u6709\u6d4f\u89c8\u5668<\/p>\n<\/li>\n<li>\n<p>\u4e0d\u4f9d\u8d56\u5176\u4ed6\u524d\u7aef\u6846\u67b6&#xff0c;\u5355\u72ec\u8fd0\u884c\u65e0\u51b2\u7a81&#xff0c;\u53ef\u5d4c\u5165\u73b0\u6709\u9879\u76ee\u4e5f\u53ef\u72ec\u7acb\u90e8\u7f72<\/p>\n<\/li>\n<\/ul>\n<h4>4. \u8f7b\u91cf\u9ad8\u6548&#xff0c;\u53ef\u6269\u5c55<\/h4>\n<p>\u6846\u67b6\u6838\u5fc3\u4f53\u79ef\u6781\u5c0f&#xff08;\u6253\u5305\u540e\u4ec52KB\u5de6\u53f3&#xff09;&#xff0c;\u52a0\u8f7d\u901f\u5ea6\u5feb&#xff1b;\u540c\u65f6\u652f\u6301\u6269\u5c55&#xff0c;\u53ef\u901a\u8fc7\u81ea\u5b9a\u4e49JS\u6269\u5c55\u6e32\u67d3\u903b\u8f91&#xff0c;\u517c\u987e\u6781\u7b80\u548c\u7075\u6d3b\u6027&#xff0c;\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u9700\u6c42\u3002<\/p>\n<h3>&#x1f680; \u5feb\u901f\u4f53\u9a8c\u6307\u5357&#xff08;3\u5206\u949f\u4e0a\u624b&#xff09;<\/h3>\n<li>\n<p>\u786e\u4fdd\u672c\u5730\u5b89\u88c5Node.js&#xff08;v16&#043;&#xff09;&#xff0c;\u65e0\u9700\u989d\u5916\u914d\u7f6e&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c npm create xiangjsoncraft&#064;latest my-xjc-app&#xff0c;\u8f93\u5165\u9879\u76ee\u540d&#xff0c;\u7b49\u5f85\u811a\u624b\u67b6\u521b\u5efa\u5b8c\u6210&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165\u9879\u76ee\u76ee\u5f55&#xff0c;\u6267\u884c npm install \u5b89\u88c5\u4f9d\u8d56&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c npm run start \u542f\u52a8\u9879\u76ee&#xff0c;\u8bbf\u95ee http:\/\/localhost:3000&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6253\u5f00\u9879\u76ee\u6839\u76ee\u5f55\u7684 config.json&#xff0c;\u4fee\u6539styles&#xff08;\u6837\u5f0f&#xff09;\u3001content&#xff08;\u5185\u5bb9&#xff09;&#xff0c;\u5237\u65b0\u6d4f\u89c8\u5668\u5373\u53ef\u770b\u5230\u6548\u679c\u3002<\/p>\n<\/li>\n<h3>&#x1f4a1; \u5199\u5728\u6700\u540e<\/h3>\n<p>\u4ece4\u4e2a\u6587\u4ef6\u7684\u5c0fnpm\u5305&#xff0c;\u5230\u72ec\u7acb\u7684\u524d\u7aef\u6846\u67b6&#xff0c;XiangJsonCraft 2.0 \u8d70\u8fc7\u4e86\u65e0\u6570\u6b21\u8e29\u5751\u3001\u8c03\u8bd5\u7684\u8fc7\u7a0b\u2014\u2014\u4ece\u4f9d\u8d56\u7f3a\u5931\u3001\u8def\u5f84\u9519\u8bef&#xff0c;\u5230\u5168\u5c40\u53d8\u91cf\u66b4\u9732\u95ee\u9898\u3001NPM\u53d1\u5e03\u62a5\u9519&#xff0c;\u6bcf\u4e00\u4e2abug\u7684\u89e3\u51b3&#xff0c;\u90fd\u662f\u4e00\u6b21\u6210\u957f\u3002<\/p>\n<p>\u5b83\u4e0d\u8ffd\u6c42\u201c\u5927\u800c\u5168\u201d&#xff0c;\u800c\u662f\u4e13\u6ce8\u4e8e\u300c\u6781\u7b80\u5f00\u53d1\u300d&#xff0c;\u5e0c\u671b\u80fd\u5e2e\u5230\u90a3\u4e9b\u4e0d\u60f3\u5199\u7e41\u7410CSS\/JS\u3001\u9700\u8981\u5feb\u901f\u642d\u5efa\u9759\u6001\u9875\u9762\u7684\u5f00\u53d1\u8005&#xff0c;\u4e5f\u5e0c\u671b\u80fd\u7ed9\u524d\u7aef\u65b0\u624b\u63d0\u4f9b\u4e00\u4e2a\u7b80\u5355\u6613\u61c2\u7684\u6846\u67b6\u4f53\u9a8c\u3002<\/p>\n<p>\u73b0\u5728&#xff0c;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u5df2\u4e0a\u7ebfNPM&#xff0c;\u5168\u7a0b\u65e0\u62a5\u9519\u3001\u5f00\u7bb1\u5373\u7528&#xff0c;\u8bda\u631a\u9080\u8bf7\u6240\u6709\u5f00\u53d1\u8005\u4f53\u9a8c\u3001\u6d4b\u8bd5&#xff0c;\u63d0\u51fa\u5b9d\u8d35\u7684\u610f\u89c1\u548c\u5efa\u8bae&#xff01;<\/p>\n<p>\u5982\u679c\u4f53\u9a8c\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898&#xff0c;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u8a00&#xff0c;\u6211\u4f1a\u7b2c\u4e00\u65f6\u95f4\u56de\u590d\u3001\u4f18\u5316&#xff1b;\u4e5f\u671f\u5f85\u5927\u5bb6\u4e00\u8d77\u53c2\u4e0e\u8fed\u4ee3&#xff0c;\u8ba9\u8fd9\u4e2a\u201c\u4ece\u5e95\u5c42\u9006\u88ad\u201d\u7684\u6846\u67b6\u53d8\u5f97\u66f4\u597d&#xff5e;<\/p>\n<h3>&#x1f4e6; \u6846\u67b6\u5730\u5740<\/h3>\n<p>NPM\u5730\u5740&#xff1a;https:\/\/www.npmjs.com\/package\/xiangjsoncraft&#xff08;\u70b9\u51fb\u76f4\u63a5\u8df3\u8f6c&#xff0c;\u53ef\u67e5\u770b\u6846\u67b6\u8be6\u60c5\u3001\u7248\u672c\u66f4\u65b0\u8bb0\u5f55\u53ca\u5b8c\u6574\u6587\u6863&#xff09;<\/p>\n<p>\u6838\u5fc3 \u4f53\u9a8c\u547d\u4ee4&#xff1a;npm create xiangjsoncraft&#064;latest&#xff0c;\u590d\u5236\u7c98\u8d34\u6267\u884c&#xff0c;\u5feb\u6765\u8bd5\u8bd5\u7528JSON\u5199\u9875\u9762\u5427&#x1f389;&#xff01;<\/p>\n<p>PS&#xff1a;\u7279\u522b\u7eaa\u5ff5\u4e00\u4e0b\u90a3\u4e2a\u201c\u8eb2\u5728node_modules\u91cc\u201d\u7684\u6838\u5fc3\u6e32\u67d3\u6587\u4ef6\u2014\u2014\u4ece\u5bc4\u4eba\u7bf1\u4e0b&#xff0c;\u5230\u6210\u4e3a\u6846\u67b6\u7684\u201c\u6838\u5fc3\u5f15\u64ce\u201d&#xff0c;\u5b83\u4e5f\u8ddf\u7740XiangJsonCraft\u4e00\u8d77\u201c\u72c2\u98d9\u201d\u5566&#x1f602;&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 \u6587\u7ae0\u76ee\u5f55 \u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86&#x1f4cc; \u6846\u67b6\u8715\u53d8\u5386\u7a0b&#xff08;\u4ece\u201c\u5356\u9c7c\u4f6c\u201d\u5230\u201c\u5efa\u5de5\u5927\u4f6c\u201d\u7684\u524d\u7aef\u7248\u72c2\u98d9&#xff09;&#x1f525; \u6846\u67b6\u6838\u5fc3\u4eae\u70b9&#xff08;\u7eafJSON\u9a71\u52a8&#xff0c;\u4e3b\u6253\u4e00\u4e2a\u7b80\u5355\u9ad8\u6548&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11372,187,93,87,885],"topic":[],"class_list":["post-99412","post","type-post","status-publish","format-standard","hentry","category-server","tag-xiangjsoncraft","tag-javascript","tag-json","tag-87","tag-885"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/99412.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 \u6587\u7ae0\u76ee\u5f55 \u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86&#x1f4cc; \u6846\u67b6\u8715\u53d8\u5386\u7a0b&#xff08;\u4ece\u201c\u5356\u9c7c\u4f6c\u201d\u5230\u201c\u5efa\u5de5\u5927\u4f6c\u201d\u7684\u524d\u7aef\u7248\u72c2\u98d9&#xff09;&#x1f525; \u6846\u67b6\u6838\u5fc3\u4eae\u70b9&#xff08;\u7eafJSON\u9a71\u52a8&#xff0c;\u4e3b\u6253\u4e00\u4e2a\u7b80\u5355\u9ad8\u6548&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/99412.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-02T07:04:51+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99412.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/99412.html\",\"name\":\"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-02T07:04:51+00:00\",\"dateModified\":\"2026-09-02T07:04:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/99412.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/99412.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99412.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/99412.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 \u6587\u7ae0\u76ee\u5f55 \u5b98\u5ba3&#x1f389;&#xff01;XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf&#xff0c;\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86&#x1f4cc; \u6846\u67b6\u8715\u53d8\u5386\u7a0b&#xff08;\u4ece\u201c\u5356\u9c7c\u4f6c\u201d\u5230\u201c\u5efa\u5de5\u5927\u4f6c\u201d\u7684\u524d\u7aef\u7248\u72c2\u98d9&#xff09;&#x1f525; \u6846\u67b6\u6838\u5fc3\u4eae\u70b9&#xff08;\u7eafJSON\u9a71\u52a8&#xff0c;\u4e3b\u6253\u4e00\u4e2a\u7b80\u5355\u9ad8\u6548&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/99412.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-02T07:04:51+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/99412.html","url":"https:\/\/www.wsisp.com\/helps\/99412.html","name":"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-02T07:04:51+00:00","dateModified":"2026-09-02T07:04:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/99412.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/99412.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/99412.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5b98\u5ba3\uff01XiangJsonCraft 2.0 \u6b63\u5f0f\u7248\u4e0a\u7ebf\uff0c\u7eafJSON\u9a71\u52a8\u7684\u524d\u7aef\u6846\u67b6\u6765\u4e86"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=99412"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99412\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=99412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=99412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=99412"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=99412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}