{"id":29620,"date":"2024-11-25T14:56:48","date_gmt":"2024-11-25T06:56:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29620\/"},"modified":"2024-11-25T14:56:48","modified_gmt":"2024-11-25T06:56:48","slug":"%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e7%9a%84%e4%b8%80%e4%ba%9b%e7%bb%8f%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29620\/","title":{"rendered":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u7684\u4e00\u4e9b\u7ecf\u9a8c"},"content":{"rendered":"<p>\u4e00: \u53c2\u6570\u7684\u65b9\u6cd5<\/p>\n<p>1: data-id<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u7ed9\u6dfb\u52a0data-*\u6765\u4f20\u9012\u6211\u4eec\u9700\u8981\u7684\u503c,\u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e:&nbsp;<\/p>\n<p>(1)\u8bbe\u7f6edata-id<\/p>\n<pre>&lt;view&gt;&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>(2): \u53d6\u503c + \u4f20\u503c<\/p>\n<pre>playTap:function(e)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;dataset&nbsp;=&nbsp;e.currentTarget.dataset;\r\n&nbsp;&nbsp;&nbsp;&nbsp;wx.navigateTo({\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:&nbsp;'..\/play\/index?id='+&nbsp;dataset.id\r\n&nbsp;&nbsp;&nbsp;&nbsp;})\r\n&nbsp;&nbsp;&nbsp;&nbsp;console.log(dataset.id);\r\n&nbsp;&nbsp;}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>(3):\u53d6\u503c<\/p>\n<pre>onLoad:function&nbsp;(param)&nbsp;{\r\n&nbsp;&nbsp;\/\/\u9875\u9762\u521d\u59cb\u5316\r\n&nbsp;&nbsp;&nbsp;&nbsp;this.setData({\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentId:param.id\r\n&nbsp;&nbsp;&nbsp;&nbsp;})\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>data-\u6ce8\u610f\u4e8b\u9879:data-\u540d\u79f0\u4e0d\u80fd\u6709\u5927\u5199\u5b57\u6bcd,\u66fe\u7ecf\u6211\u5c31\u56e0\u4e3a\u5927\u5199\u4e86\u4e00\u4e2a\u5b57\u6bcd,\u627e\u4e86\u534a\u5929\u7684\u624d\u53d1\u73b0\u8fd9\u4e2a\u9519\u8bef..data-*\u5c5e\u6027\u4e2d\u4e0d\u53ef\u4ee5\u5b58\u653e\u5bf9\u8c61<\/p>\n<p>2: \u8bbe\u7f6eid \u7684\u65b9\u6cd5\u6807\u8bc6\u6765\u4f20\u503c<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e:&nbsp;<\/p>\n<p>(1)\u8bbe\u7f6eid<\/p>\n<pre>&lt;view&gt;&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>(2)\u53d6\u503c&nbsp;<\/p>\n<p>\u901a\u8fc7e.currentTarget.id\u83b7\u53d6\u8bbe\u7f6e\u7684id\u7684\u503c,\u7136\u540e\u901a\u8fc7\u8bbe\u7f6e\u5168\u5c40\u5bf9\u8c61\u7684\u65b9\u5f0f\u6765\u4f20\u9012\u6570\u503c<\/p>\n<p>3: \u5728navigator\u4e2d\u6dfb\u52a0\u53c2\u6570\u4f20\u503c<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e&nbsp;<\/p>\n<p>(1)\u4f20\u503c:\u5728navigator\u7684\u5c5e\u6027url\u540e\u62fc\u63a5?id(\u53c2\u6570\u540d\u5b57)=\u8981\u4f20\u9012\u7684\u503c (\u5982\u679c\u591a\u4e2a\u53c2\u6570\u7528&amp;\u5206\u5f00 &amp;name=value&amp;\u2026\u2026.)<\/p>\n<pre>&lt;navigator&gt;&lt;\/navigator&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>(2)\u53d6\u503c:<\/p>\n<pre>onLoad&nbsp;(params){\r\n&nbsp;&nbsp;&nbsp;&nbsp;app.fetch(API.detail&nbsp;+&nbsp;params.id,(err,data)&nbsp;=&amp;gt;&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;})\r\n&nbsp;&nbsp;}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e8c:\u6570\u636e\u8bf7\u6c42\u5c01\u88c5<\/p>\n<p>1.\u5c06\u6240\u6709\u7684\u653e\u5728\u7edf\u4e00\u7684js\u6587\u4ef6\u4e2d\u5e76\u5bfc\u51fa<\/p>\n<pre>const&nbsp;api&nbsp;=&nbsp;{\r\n&nbsp;&nbsp;interface1:&nbsp;'https:\/\/........',\r\n&nbsp;&nbsp;&nbsp;interface2:&nbsp;'https:\/\/.......',\r\n&nbsp;&nbsp;&nbsp;interface3:&nbsp;'https:\/\/....',\r\n&nbsp;&nbsp;&nbsp;.....\r\n}\r\nmodule.exports&nbsp;=&nbsp;api;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>2:\u5728app.js\u4e2d\u521b\u5efa\u5c01\u88c5\u8bf7\u6c42\u6570\u636e\u7684\u65b9\u6cd5<\/p>\n<pre>fetch(url,data,&nbsp;callback)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;wx.request({\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url,\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data:&nbsp;data,\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;header:&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Content-Type':&nbsp;'application\/json'\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;success(res)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callback(null,&nbsp;res.data);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fail(e)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callback(e);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;})\r\n&nbsp;},<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>3: \u5728\u5b50\u9875\u9762\u4e2d\u8c03\u7528\u5c01\u88c5\u7684\u65b9\u6cd5\u8bf7\u6c42\u6570\u636e<\/p>\n<pre>import&nbsp;API&nbsp;from&nbsp;\"..\/..\/api\/api.js\";\r\nconst&nbsp;app&nbsp;=&nbsp;getApp();\r\nconst&nbsp;conf&nbsp;=&nbsp;{\r\n&nbsp;&nbsp;data:{\r\n&nbsp;&nbsp;&nbsp;&nbsp;title:'\u6b63\u5728\u62fc\u547d\u52a0\u8f7d\u4e2d...',\r\n&nbsp;&nbsp;&nbsp;&nbsp;loadding:true\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onLoad&nbsp;(){\r\n&nbsp;&nbsp;&nbsp;&nbsp;app.fetch(API.hot,{},(err,data)&nbsp;=&amp;gt;&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;})\r\n&nbsp;&nbsp;}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e09:\u4f7f\u7528\u6a21\u677f(\u53d1\u73b0\u6a21\u677f\u771f\u662f\u4e2a\u597d\u4e1c\u897f\u54e6!)<\/p>\n<p>1:\u5b9a\u4e49\u6a21\u677f:name\u8bbe\u7f6e\u6a21\u677f\u7684\u540d\u5b57<\/p>\n<pre>&lt;template&gt;\r\n&nbsp;&nbsp;&nbsp;&lt;view&gt;\r\n&nbsp;&nbsp;&lt;\/view&gt;\r\n&nbsp;&lt;\/template&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>2:\u4f7f\u7528\u6a21\u677f<\/p>\n<p>\u9996\u5148\u5f15\u5165\u6a21\u677f<\/p>\n<pre>&lt;import&gt;&lt;\/import&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u4f7f\u7528\u6a21\u677fis\u540e\u5199\u6a21\u677f\u7684name..\u901a\u8fc7data\u6765\u4f20\u9012\u9700\u8981\u662f\u6570\u636e<\/p>\n<pre>&lt;template&gt;&lt;\/template&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u56db:Array\u6bd4\u8f83\u597d\u7528\u7684\u5c5e\u6027\u548c\u65b9\u6cd5<\/p>\n<p>Array.isArray() \u65b9\u6cd5\u7528\u6765\u5224\u65ad\u67d0\u4e2a\u503c\u662f\u5426\u4e3aArray\u3002\u5982\u679c\u662f\uff0c\u5219\u8fd4\u56de true\uff0c\u5426\u5219\u8fd4\u56de false\u3002<\/p>\n<p>concat() \u65b9\u6cd5\u5c06\u4f20\u5165\u7684\u6570\u7ec4\u6216\u975e\u6570\u7ec4\u503c\u4e0e\u539f\u6570\u7ec4\u5408\u5e76,\u7ec4\u6210\u4e00\u4e2a\u65b0\u7684\u6570\u7ec4\u5e76\u8fd4\u56de.<\/p>\n<p>forEach() \u65b9\u6cd5\u5bf9\u6570\u7ec4\u7684\u6bcf\u4e2a\u5143\u7d20\u6267\u884c\u4e00\u6b21\u63d0\u4f9b\u7684\u51fd\u6570(\u56de\u8c03\u51fd\u6570)\u3002<\/p>\n<p>join() \u65b9\u6cd5\u5c06\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u5143\u7d20\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<p>keys() \u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\u7d22\u5f15\u7684\u8fed\u4ee3\u5668\u3002<\/p>\n<p>map() \u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u7531\u539f\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8c03\u7528\u4e00\u4e2a\u6307\u5b9a\u65b9\u6cd5\u540e\u7684\u8fd4\u56de\u503c\u7ec4\u6210\u7684\u65b0\u6570\u7ec4<\/p>\n<p>pop() \u65b9\u6cd5\u5220\u9664\u4e00\u4e2a\u6570\u7ec4\u4e2d\u7684\u6700\u540e\u7684\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u4e14\u8fd4\u56de\u8fd9\u4e2a\u5143\u7d20\u3002<\/p>\n<p>push() \u65b9\u6cd5\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u5143\u7d20\u5230\u6570\u7ec4\u7684\u672b\u5c3e\uff0c\u5e76\u8fd4\u56de\u6570\u7ec4\u65b0\u7684\u957f\u5ea6\uff08length \u5c5e\u6027\u503c\uff09\u3002<\/p>\n<p>toString() \u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u8868\u793a\u6307\u5b9a\u7684\u6570\u7ec4\u53ca\u5176\u5143\u7d20\u3002<\/p>\n<p>\u4e94:\u5bf9\u8c61Object\u5e38\u7528\u65b9\u6cd5<\/p>\n<p>1 \u521d\u59cb\u5316\u65b9\u6cd5<\/p>\n<pre>var&nbsp;obj&nbsp;=&nbsp;[];\r\nvar&nbsp;obj&nbsp;=&nbsp;new&nbsp;obj();\r\nvar&nbsp;obj&nbsp;=&nbsp;Object.create(null);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>2 \u6dfb\u52a0\u5143\u7d20\u7684\u65b9\u6cd5<\/p>\n<pre>dic[\u201ckey\u201d]&nbsp;=&nbsp;\u201cvalue\u201d;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>3 \u5220\u9664key\u7684\u65b9\u6cd5<\/p>\n<pre>delete&nbsp;dic[\u201ckey\u201d];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>4 \u6e05\u7a7a\u8bcd\u6240\u6709\u6761\u76ee<\/p>\n<pre>dic.clear();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>5 \u5220\u9664<\/p>\n<pre>delete&nbsp;dic;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>6 \u67e5\u770b\u6240\u6709\u5c5e\u6027\u7684\u65b9\u6cd5<\/p>\n<pre>Object.keys(obj);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>\u5bf9\u8c61\u7684\u6240\u6709\u952e\u540d\u90fd\u662f\u5b57\u7b26\u4e32\uff0c\u6240\u4ee5\u52a0\u4e0d\u52a0\u5f15\u53f7\u90fd\u53ef\u4ee5,\u5982\u679c\u952e\u540d\u662f\u6570\u503c,\u4f1a\u88ab\u81ea\u52a8\u8f6c\u4e3a\u5b57\u7b26\u4e32\u4f46\u662f\uff0c\u5982\u679c\u952e\u540d\u4e0d\u7b26\u5408\u6807\u8bc6\u540d\u7684\u6761\u4ef6\uff08\u6bd4\u5982\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e3a\u6570\u5b57\uff0c\u6216\u8005\u542b\u6709\u7a7a\u683c\u6216\uff09\uff0c\u4e5f\u4e0d\u662f\u6570\u5b57\uff0c\u5219\u5fc5\u987b\u52a0\u4e0a\u5f15\u53f7\uff0c\u5426\u5219\u4f1a\u62a5\u9519<\/p>\n<p>7 \u8bfb\u53d6\u5c5e\u6027<\/p>\n<pre>obj.name&nbsp;||&nbsp;obj['name']<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>\u6ce8\u610f: \u6570\u503c\u952e\u540d\u4e0d\u80fd\u4f7f\u7528\u70b9\u8fd0\u7b97\u7b26\uff08\u56e0\u4e3a\u4f1a\u88ab\u5f53\u6210\u5c0f\u6570\u70b9\uff09\uff0c\u53ea\u80fd\u4f7f\u7528\u65b9\u62ec\u53f7\u8fd0\u7b97\u7b26\u3002<\/p>\n<p>8 \u68c0\u67e5\u662f\u5426\u58f0\u660e<\/p>\n<pre>if(obj.name)&nbsp;||&nbsp;if(obj['name'])<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>9 in \u8fd0\u7b97\u7b26\u7528\u4e8e\u68c0\u67e5\u5bf9\u8c61\u662f\u5426\u5305\u542b\u67d0\u4e2a\u5c5e\u6027,\u5982\u679c\u5305\u542b\u8fd4\u56detrue,\u5426\u5219\u8fd4\u56defalse<\/p>\n<pre>if&nbsp;(&nbsp;\u2018x'&nbsp;in&nbsp;obj)&nbsp;{return&nbsp;1}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>10 for \u2026 in <\/p>\n<p>\u7528\u6765\u904d\u5386\u4e00\u4e2a\u5bf9\u8c61\u7684\u5168\u90e8\u5c5e\u6027<\/p>\n<pre>for&nbsp;(var&nbsp;i&nbsp;in&nbsp;obj)&nbsp;{\r\nconsole.log(obj);\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp; &nbsp;<\/p>\n<p>11 with \u8bed\u53e5<\/p>\n<p>\u4f5c\u7528: \u64cd\u4f5c\u540c\u4e00\u4e2a\u5bf9\u8c61\u7684\u591a\u4e2a\u5c5e\u6027\u65f6,\u63d0\u4f9b\u4e00\u4e9b\u4e66\u5199\u7684\u65b9\u4fbf<\/p>\n<pre>with(obj)&nbsp;{\r\nname1&nbsp;=&nbsp;1;\r\nname2&nbsp;=&nbsp;2;\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7b49\u540c\u4e8e<\/p>\n<pre>bj.name1&nbsp;=&nbsp;1;\r\nobj.name2&nbsp;=&nbsp;2;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u7684\u4e00\u4e9b\u7ecf\u9a8c\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>\u4e00: \u53c2\u6570\u7684\u65b9\u6cd5 1: data-id \u6211\u4eec\u53ef\u4ee5\u7ed9\u6dfb\u52a0data-*\u6765\u4f20\u9012\u6211\u4eec\u9700\u8981\u7684\u503c,\u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e:&nbsp; (1)\u8bbe\u7f6edata-id &lt;view&gt;&lt;\/view&gt; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 (2): \u53d6\u503c + \u4f20\u503c playTap:function(e)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;dataset&nbsp;=&nbsp;e.currentTarget.dataset; &nbsp;&nbsp;&nbsp;&nbsp;wx.navigateTo({ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:&nbsp;&#8216;..\/play\/index?id=&#8217;+&nbsp;dataset.id &nbsp;&nbsp;&nbsp;&nbsp;}) &nbsp;&nbsp;&nbsp;&nbsp;console.log(dataset.id); &nbsp;&nbsp;} \u767b\u5f55\u540e\u590d\u5236 (3):\u53d6\u503c onLoad:function&nbsp;(param)&nbsp;{ &nbsp;&nbsp;\/\/\u9875\u9762\u521d\u59cb\u5316 &nbsp;&nbsp;&nbsp;&nbsp;this.setData({ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentId:param.id &nbsp;&nbsp;&nbsp;&nbsp;}) } \u767b\u5f55\u540e\u590d\u5236 data-\u6ce8\u610f\u4e8b\u9879:data-\u540d\u79f0\u4e0d\u80fd\u6709\u5927\u5199\u5b57\u6bcd,\u66fe\u7ecf\u6211\u5c31\u56e0\u4e3a\u5927\u5199\u4e86\u4e00\u4e2a\u5b57\u6bcd,\u627e\u4e86\u534a\u5929\u7684\u624d\u53d1\u73b0\u8fd9\u4e2a\u9519\u8bef..data-*\u5c5e\u6027\u4e2d\u4e0d\u53ef\u4ee5\u5b58\u653e\u5bf9\u8c61 2: \u8bbe\u7f6eid \u7684\u65b9\u6cd5\u6807\u8bc6\u6765\u4f20\u503c \u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e:&nbsp; (1)\u8bbe\u7f6eid &lt;view&gt;&lt;\/view&gt; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 (2)\u53d6\u503c&nbsp; \u901a\u8fc7e.currentTarget.id\u83b7\u53d6\u8bbe\u7f6e\u7684id\u7684\u503c,\u7136\u540e\u901a\u8fc7\u8bbe\u7f6e\u5168\u5c40\u5bf9\u8c61\u7684\u65b9\u5f0f\u6765\u4f20\u9012\u6570\u503c 3: \u5728navigator\u4e2d\u6dfb\u52a0\u53c2\u6570\u4f20\u503c \u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e&nbsp; (1)\u4f20\u503c:\u5728navigator\u7684\u5c5e\u6027url\u540e\u62fc\u63a5?id(\u53c2\u6570\u540d\u5b57)=\u8981\u4f20\u9012\u7684\u503c (\u5982\u679c\u591a\u4e2a\u53c2\u6570\u7528&amp;\u5206\u5f00 &amp;name=value&amp;\u2026\u2026.) &lt;navigator&gt;&lt;\/navigator&gt; \u767b\u5f55\u540e\u590d\u5236 (2)\u53d6\u503c: onLoad&nbsp;(params){ &nbsp;&nbsp;&nbsp;&nbsp;app.fetch(API.detail&nbsp;+&nbsp;params.id,(err,data)&nbsp;=&amp;gt;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;}) &nbsp;&nbsp;} \u767b\u5f55\u540e\u590d\u5236 \u4e8c:\u6570\u636e\u8bf7\u6c42\u5c01\u88c5 [&hellip;]<\/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-29620","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29620","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=29620"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29620\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}