{"id":159,"date":"2024-12-11T00:09:30","date_gmt":"2024-12-10T16:09:30","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=159"},"modified":"2024-12-11T00:09:30","modified_gmt":"2024-12-10T16:09:30","slug":"js%e6%80%8e%e4%b9%88%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e4%b8%ba%e6%95%b0%e7%bb%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2024\/12\/11\/js%e6%80%8e%e4%b9%88%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e4%b8%ba%e6%95%b0%e7%bb%84%ef%bc%9f\/","title":{"rendered":"js\u600e\u4e48\u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u6570\u7ec4\uff1f"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u5728 JavaScript \u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u4e0d\u540c\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u3002\u968f\u7740 JavaScript \u8bed\u8a00\u7684\u53d1\u5c55\uff0c\u4ee5\u4e0b\u662f\u51e0\u79cd\u7ed3\u5408\u6700\u65b0\u6280\u672f\u548c\u5e38\u89c1\u573a\u666f\u7684\u8be6\u7ec6\u89e3\u7b54\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>\u4f7f\u7528 <code>split()<\/code> \u65b9\u6cd5<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>split()<\/code> \u65b9\u6cd5\u662f\u6700\u5e38\u7528\u7684\u5b57\u7b26\u4e32\u8f6c\u6570\u7ec4\u7684\u65b9\u6cd5\u3002\u5b83\u6839\u636e\u6307\u5b9a\u7684\u5206\u9694\u7b26\u5c06\u5b57\u7b26\u4e32\u62c6\u5206\u6210\u6570\u7ec4\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u57fa\u672c\u7528\u6cd5<\/strong>\uff1a\u5f53\u4f60\u6709\u4e00\u4e2a\u7531\u7279\u5b9a\u5b57\u7b26\u5206\u9694\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>split()<\/code> \u65b9\u6cd5\u62c6\u5206\u5b83\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"apple,banana,cherry\";\nlet arr = str.split(\",\");  \/\/ \u4f7f\u7528\u9017\u53f7\u4f5c\u4e3a\u5206\u9694\u7b26\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"apple\", \"banana\", \"cherry\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4e0d\u4f20\u9012\u5206\u9694\u7b26<\/strong>\uff1a\u5982\u679c\u4e0d\u4f20\u9012\u5206\u9694\u7b26\uff0c\u5b83\u4f1a\u628a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u5355\u4e2a\u6570\u7ec4\u5143\u7d20\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"hello\";\nlet arr = str.split(\"\");  \/\/ \u6bcf\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u6570\u7ec4\u5143\u7d20\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"h\", \"e\", \"l\", \"l\", \"o\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9650\u5236\u62c6\u5206\u6b21\u6570<\/strong>\uff1a\u5982\u679c\u4f60\u53ea\u5e0c\u671b\u5206\u5272\u51fa\u7279\u5b9a\u6570\u91cf\u7684\u6570\u7ec4\u5143\u7d20\uff0c\u53ef\u4ee5\u4f20\u9012\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6765\u9650\u5236\u62c6\u5206\u7684\u6b21\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"apple,banana,cherry,dates\";\nlet arr = str.split(\",\", 2);  \/\/ \u53ea\u62c6\u5206\u524d\u4e24\u4e2a\u5143\u7d20\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"apple\", \"banana\"]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u4f7f\u7528\u6269\u5c55\u8fd0\u7b97\u7b26\uff08<code>...<\/code>\uff09<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6269\u5c55\u8fd0\u7b97\u7b26 (<code>...<\/code>) \u662f\u73b0\u4ee3 JavaScript \u4e2d\u7528\u4e8e\u5c06\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff08\u5982\u5b57\u7b26\u4e32\uff09\u5c55\u5f00\u4e3a\u6570\u7ec4\u7684\u4fbf\u6377\u65b9\u6cd5\u3002\u5b83\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u7684\u6bcf\u4e2a\u5b57\u7b26\u5c55\u5f00\u4e3a\u6570\u7ec4\u5143\u7d20\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"hello\";\nlet arr = &#91;...str];  \/\/ \u6bcf\u4e2a\u5b57\u7b26\u5c55\u5f00\u4e3a\u6570\u7ec4\u5143\u7d20\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"h\", \"e\", \"l\", \"l\", \"o\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bed\u6cd5\u7b80\u6d01\uff0c\u6613\u4e8e\u7406\u89e3\u3002<\/li>\n\n\n\n<li>\u6269\u5c55\u8fd0\u7b97\u7b26\u4e0d\u4ec5\u80fd\u5bf9\u5b57\u7b26\u4e32\u64cd\u4f5c\uff0c\u8fd8\u53ef\u4ee5\u5bf9\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff08\u5982\u6570\u7ec4\u3001Set\u3001Map\uff09\u8fdb\u884c\u5c55\u5f00\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u4f7f\u7528 <code>Array.from()<\/code> \u65b9\u6cd5<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Array.from()<\/code> \u662f\u53e6\u4e00\u79cd\u73b0\u4ee3 JavaScript \u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u7c7b\u6570\u7ec4\u5bf9\u8c61\uff08\u4f8b\u5982\u5b57\u7b26\u4e32\u3001<code>NodeList<\/code> \u7b49\uff09\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4e5f\u652f\u6301\u4f20\u5165\u4e00\u4e2a\u6620\u5c04\u51fd\u6570\u6765\u8fdb\u884c\u8f6c\u6362\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"hello\";\nlet arr = Array.from(str);  \/\/ \u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u6570\u7ec4\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"h\", \"e\", \"l\", \"l\", \"o\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f7f\u7528\u6620\u5c04\u51fd\u6570<\/strong>\uff1a\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u6620\u5c04\u51fd\u6570\u6765\u5bf9\u6bcf\u4e2a\u5b57\u7b26\u8fdb\u884c\u5904\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"hello\";\nlet arr = Array.from(str, char =&gt; char.toUpperCase());\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"H\", \"E\", \"L\", \"L\", \"O\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0d\u4ec5\u80fd\u8f6c\u5316\u5b57\u7b26\u4e32\uff0c\u8fd8\u53ef\u4ee5\u8f6c\u5316\u5176\u4ed6\u7c7b\u6570\u7ec4\u5bf9\u8c61\u3002<\/li>\n\n\n\n<li>\u652f\u6301\u6620\u5c04\u51fd\u6570\uff0c\u80fd\u591f\u5728\u8f6c\u6362\u7684\u540c\u65f6\u5904\u7406\u6bcf\u4e2a\u5143\u7d20\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u4f7f\u7528 <code>JSON.parse()<\/code> \u548c <code>JSON.stringify()<\/code><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4f60\u6709\u4e00\u4e2a\u7b26\u5408 JSON \u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff08\u6bd4\u5982\u5305\u542b\u6570\u7ec4\u7684\u5b57\u7b26\u4e32\uff09\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>JSON.parse()<\/code> \u5c06\u5b83\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4ece\u670d\u52a1\u5668\u83b7\u53d6\u7684 JSON \u6570\u636e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = '&#91;\"apple\", \"banana\", \"cherry\"]';\nlet arr = JSON.parse(str);  \/\/ \u5c06 JSON \u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"apple\", \"banana\", \"cherry\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6ce8\u610f<\/strong>\uff1a\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5408\u6cd5\u7684 JSON \u5b57\u7b26\u4e32\u3002\u5982\u679c\u5b57\u7b26\u4e32\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c<code>JSON.parse()<\/code> \u4f1a\u629b\u51fa\u9519\u8bef\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5904\u7406 JSON \u6570\u636e\u65f6\uff0c\u5c24\u5176\u662f\u4ece\u5916\u90e8 API \u83b7\u53d6\u7684\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u4e0e <code>match()<\/code><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4f60\u9700\u8981\u6839\u636e\u7279\u5b9a\u6a21\u5f0f\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u591a\u4e2a\u90e8\u5206\u65f6\uff0c\u53ef\u4ee5\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u548c <code>match()<\/code> \u65b9\u6cd5\u5c06\u5339\u914d\u5230\u7684\u5185\u5bb9\u8f6c\u5316\u4e3a\u6570\u7ec4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"apple 123 banana 456 cherry\";\nlet arr = str.match(\/&#91;a-zA-Z]+\/g);  \/\/ \u63d0\u53d6\u6240\u6709\u5b57\u6bcd\u5e8f\u5217\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"apple\", \"banana\", \"cherry\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6ce8\u610f<\/strong>\uff1a<code>match()<\/code> \u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\uff0c\u5305\u542b\u6240\u6709\u5339\u914d\u7684\u7ed3\u679c\u3002\u5982\u679c\u6ca1\u6709\u5339\u914d\u9879\uff0c\u5b83\u8fd4\u56de <code>null<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>\u5904\u7406\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5b57\u7b26\u4e32\u53ef\u80fd\u5305\u542b\u4e00\u4e9b\u7279\u6b8a\u5b57\u7b26\uff0c\u6bd4\u5982\u6362\u884c\u7b26\u3001\u7a7a\u683c\u7b49\u3002\u5982\u679c\u8981\u5c06\u5176\u6309\u884c\u6216\u6309\u7a7a\u683c\u62c6\u5206\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>split()<\/code> \u65b9\u6cd5\u6216\u8005\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5904\u7406\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6309\u884c\u62c6\u5206\u5b57\u7b26\u4e32<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = `apple\nbanana\ncherry`;\nlet arr = str.split(\"\\n\");  \/\/ \u6309\u884c\u62c6\u5206\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"apple\", \"banana\", \"cherry\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6309\u7a7a\u683c\u62c6\u5206\u5b57\u7b26\u4e32<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let str = \"apple banana cherry\";\nlet arr = str.split(\/\\s+\/);  \/\/ \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6309\u7a7a\u767d\u5b57\u7b26\u62c6\u5206\nconsole.log(arr);  \/\/ \u8f93\u51fa: &#91;\"apple\", \"banana\", \"cherry\"]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>\u6027\u80fd\u4f18\u5316<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5bf9\u4e8e\u5927\u578b\u5b57\u7b26\u4e32\u7684\u8f6c\u6362\uff0c\u5982\u679c\u9891\u7e41\u6267\u884c\u8f6c\u6362\u64cd\u4f5c\uff0c\u5efa\u8bae\u4f7f\u7528 <code>Array.from()<\/code> \u6216\u6269\u5c55\u8fd0\u7b97\u7b26\uff08<code>...<\/code>\uff09\uff0c\u56e0\u4e3a\u5b83\u4eec\u5728\u6027\u80fd\u548c\u4ee3\u7801\u53ef\u8bfb\u6027\u4e0a\u8868\u73b0\u8f83\u597d\u3002<\/li>\n\n\n\n<li><code>split()<\/code> \u5bf9\u4e8e\u5206\u9694\u7b26\u8f83\u4e3a\u7b80\u5355\u7684\u62c6\u5206\u4efb\u52a1\u8868\u73b0\u5f88\u597d\uff0c\u4e14\u4f7f\u7528\u5e7f\u6cdb\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\">\u603b\u7ed3<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u57fa\u672c\u65b9\u6cd5<\/strong>\uff1a\u4f7f\u7528 <code>split()<\/code> \u5c06\u5b57\u7b26\u4e32\u6309\u5206\u9694\u7b26\u62c6\u5206\uff0c\u4f7f\u7528 <code>...<\/code> \u6216 <code>Array.from()<\/code> \u5c06\u5b57\u7b26\u4e32\u7684\u6bcf\u4e2a\u5b57\u7b26\u8f6c\u4e3a\u6570\u7ec4\u3002<\/li>\n\n\n\n<li><strong>\u9ad8\u6548\u6269\u5c55<\/strong>\uff1a<code>Array.from()<\/code> \u652f\u6301\u6620\u5c04\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u8f6c\u6362\u65f6\u5bf9\u5143\u7d20\u8fdb\u884c\u64cd\u4f5c\u3002<\/li>\n\n\n\n<li><strong>JSON \u6570\u636e\u5904\u7406<\/strong>\uff1a\u4f7f\u7528 <code>JSON.parse()<\/code> \u5c06\u7b26\u5408 JSON \u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002<\/li>\n\n\n\n<li><strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7 <code>match()<\/code> \u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\u5e76\u8f6c\u4e3a\u6570\u7ec4\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636e\u9700\u6c42\u548c\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u4e3ajs\u600e\u4e48\u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u6570\u7ec4\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u4fe1\u606f\u8bf7\u5173\u6ce8\u5176\u4ed6\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u5728 JavaScript \u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u4e0d\u540c\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u3002\u968f\u7740 JavaScrip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/159","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=159"}],"version-history":[{"count":2,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions\/162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}