{"id":153671,"date":"2024-05-08T11:18:23","date_gmt":"2024-05-08T03:18:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/153671.html"},"modified":"2024-05-08T11:18:26","modified_gmt":"2024-05-08T03:18:26","slug":"%e6%80%8e%e4%b9%88%e5%9c%a8-javascript-%e9%a1%b9%e7%9b%ae%e4%b8%ad%e5%88%a9%e7%94%a8-jquery-%e5%8a%a0%e8%bd%bd%e6%96%87%e6%a1%a3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/153671.html","title":{"rendered":"\u600e\u4e48\u5728 JavaScript \u9879\u76ee\u4e2d\u5229\u7528 jQuery \u52a0\u8f7d\u6587\u6863"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27152006\/6e9b7cd5-352d-4983-ad11-9fc2465d2530.webp\" alt=\"\u600e\u4e48\u5728 JavaScript \u9879\u76ee\u4e2d\u5229\u7528 jQuery \u52a0\u8f7d\u6587\u6863\" \/><\/p>\n<p><p>jQuery \u662f\u4e00\u4e2a\u5feb\u901f\u3001\u5c0f\u5de7\u3001\u7279\u6027\u4e30\u5bcc\u7684 JavaScript \u5e93\uff0c\u5b83\u901a\u8fc7\u6613\u4e8e\u4f7f\u7528\u7684 API \u4f7f\u5f97 HTML \u6587\u6863\u904d\u5386\u548c\u64cd\u4f5c\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u52a8\u753b\u548c Ajax \u7b49\u64cd\u4f5c\u53d8\u5f97\u66f4\u7b80\u4fbf\u3002\u5728JavaScript\u9879\u76ee\u4e2d\u5229\u7528jQuery\u52a0\u8f7d\u6587\u6863\u4e3b\u8981\u5305\u62ec\u4f7f\u7528 <strong>$(document).ready()<\/strong> \u65b9\u6cd5\u548c <strong>$().load()<\/strong> \u65b9\u6cd5\u3001<strong>\u5f02\u6b65\u8bf7\u6c42\u5904\u7406<\/strong>\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u786e\u4fdd\u4e86\u5f53DOM\u5b8c\u5168\u5c31\u7eea\u65f6\u518d\u6267\u884c\u4ee3\u7801\u3001\u5b9e\u73b0\u9875\u9762\u5185\u5bb9\u7684\u5c40\u90e8\u52a0\u8f7d\u548c\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><p><strong>$().load()<\/strong> \u65b9\u6cd5\u5219\u8d1f\u8d23\u5c40\u90e8\u52a0\u8f7d\u6587\u6863\uff1a\u5b83\u5141\u8bb8\u4ece\u670d\u52a1\u5668\u52a0\u8f7d\u6570\u636e\u5e76\u653e\u5165\u6307\u5b9a\u7684\u5143\u7d20\u4e2d\u3002\u6b64\u5916\uff0c\u501f\u52a9jQuery\u7684Ajax\u65b9\u6cd5\uff0c\u6bd4\u5982 <strong>$.get()\u3001$.post()<\/strong> \u548c <strong>$.ajax()<\/strong>\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u548c\u5f3a\u5927\u7684\u5f02\u6b65\u6587\u6863\u8f7d\u5165\u4e0e\u4ea4\u4e92\u529f\u80fd\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u8bbe\u5b9a\u5982\u6570\u636e\u683c\u5f0f\u548c\u9519\u8bef\u5904\u7406\u7b49\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 $(document).ready()<\/h3>\n<\/p>\n<p><p><strong>$(document).ready()<\/strong> \u662fjQuery\u4e2d\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u51fd\u6570\uff0c\u5b83\u786e\u4fdd\u4e86\u4ee3\u7801\u53ea\u5728DOM\u5b8c\u5168\u52a0\u8f7d\u540e\u624d\u4f1a\u6267\u884c\uff0c\u8fd9\u662f\u9632\u6b62\u5728\u6587\u6863\u5b8c\u5168\u52a0\u8f7d\u548c\u89e3\u6790\u4e4b\u524d\u5c1d\u8bd5\u64cd\u4f5c\u5b83\u7684\u4e00\u79cd\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(document).ready(function(){<\/p>\n<p>    \/\/ \u4ee3\u7801\u5199\u5728\u8fd9\u91cc\uff0c\u5f53DOM\u5b8c\u5168\u5c31\u7eea\u65f6\u6267\u884c<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u5f3a\u8c03\u7684\u662f\u6587\u6863\u52a0\u8f7d\u7684\u5b8c\u6574\u6027\uff0c\u5728\u8fd9\u4e2a\u51fd\u6570\u5185\u90e8\u5199\u5165\u7684\u4efb\u4f55\u4ee3\u7801\uff0c\u90fd\u4f1a\u7b49\u5230DOM\u6811\u6784\u5efa\u5b8c\u6210\u540e\u624d\u6267\u884c\u3002\u5b83\u662f\u907f\u514dJavaScript\u4ee3\u7801\u5728DOM\u672a\u5b8c\u5168\u6784\u5efa\u65f6\u8fd0\u884c\u800c\u53d1\u751f\u9519\u8bef\u7684\u4e00\u4e2a\u597d\u4e60\u60ef\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 $().load() \u65b9\u6cd5\u52a0\u8f7d\u5185\u5bb9<\/h3>\n<\/p>\n<p><p><strong>$().load()<\/strong> \u65b9\u6cd5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5c06\u670d\u52a1\u5668\u4e0a\u7684\u5185\u5bb9\u52a0\u8f7d\u5230\u6307\u5b9a\u7684DOM\u5143\u7d20\u4e2d\u3002\u8fd9\u79cd\u65b9\u5f0f\u975e\u5e38\u9002\u5408\u4e8e\u5185\u5bb9\u7684\u5c40\u90e8\u52a8\u6001\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(&#039;#result&#039;).load(&#039;ajax\/test.html&#039;);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c&#039;.html&#039;\u6587\u4ef6\u7684\u5185\u5bb9\u4f1a\u88ab\u52a0\u8f7d\u5230id\u4e3a&#039;result&#039;\u7684\u5143\u7d20\u4e2d\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4e5f\u652f\u6301\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\uff0c\u5f53\u52a0\u8f7d\u5b8c\u6210\u540e\u6267\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(&#039;#result&#039;).load(&#039;ajax\/test.html&#039;, function() {<\/p>\n<p>    alert(&#039;Load was performed.&#039;);<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5f02\u6b65\u8bf7\u6c42\u5904\u7406<\/h3>\n<\/p>\n<p><p>jQuery\u7684Ajax\u65b9\u6cd5\u5141\u8bb8\u4f60\u6267\u884c\u5f02\u6b65HTTP\uff08Ajax\uff09\u8bf7\u6c42\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u5305\u62ec <strong>$.ajax()\u3001$.get()<\/strong> \u548c <strong>$.post()<\/strong> \u7b49\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u5904\u7406\u590d\u6742\u7684\u5f02\u6b65\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<p><h4>$.ajax()<\/h4>\n<\/p>\n<p><p>\u5b83\u662fjQuery\u6700\u5f3a\u5927\u7684Ajax\u65b9\u6cd5\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u9009\u9879\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b83\u6765\u5b9a\u5236\u5404\u79cd\u8bf7\u6c42\u76f8\u5173\u7684\u5177\u4f53\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$.ajax({<\/p>\n<p>    url: &#039;ajax\/test.html&#039;,<\/p>\n<p>    type: &#039;GET&#039;,<\/p>\n<p>    dataType: &#039;html&#039;,<\/p>\n<p>    success: function(data) {<\/p>\n<p>        \/\/ \u6210\u529f\u83b7\u53d6\u54cd\u5e94\u540e\u6267\u884c\u7684\u4ee3\u7801<\/p>\n<p>        $(&#039;#result&#039;).html(data);<\/p>\n<p>    },<\/p>\n<p>    error: function(jqXHR, textStatus, errorThrown) {<\/p>\n<p>        \/\/ \u8bf7\u6c42\u5931\u8d25\u65f6\u6267\u884c\u7684\u4ee3\u7801<\/p>\n<p>        console.log(&#039;Error:&#039;, textStatus, errorThrown);<\/p>\n<p>    }<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u65b9\u6cd5\u63d0\u4f9b\u4e86\u975e\u5e38\u7ec6\u81f4\u7684\u63a7\u5236\uff0c\u5305\u62ecHTTP\u8bf7\u6c42\u7684\u7c7b\u578b\uff08GET\u6216POST\uff09\u3001\u8fd4\u56de\u7684\u6570\u636e\u7c7b\u578b\u3001\u6210\u529f\u7684\u56de\u8c03\u3001\u9519\u8bef\u7684\u56de\u8c03\u7b49\u3002<\/p>\n<\/p>\n<p><h4>$.get() \u548c $.post()<\/h4>\n<\/p>\n<p><p>\u8fd9\u4e24\u79cd\u65b9\u6cd5\u662f\u5bf9$.ajax()\u7684\u7b80\u5316\uff0c\u901a\u5e38\u7528\u4e8eGET\u548cPOST\u8bf7\u6c42\uff0c\u4f7f\u7528\u8d77\u6765\u66f4\u4e3a\u76f4\u89c2\u548c\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">\/\/ \u4f7f\u7528$.get()\u83b7\u53d6\u6570\u636e<\/p>\n<p>$.get(&#039;ajax\/test.html&#039;, function(data) {<\/p>\n<p>    $(&#039;#result&#039;).html(data);<\/p>\n<p>});<\/p>\n<p>\/\/ \u4f7f\u7528$.post()\u53d1\u9001\u6570\u636e<\/p>\n<p>$.post(&#039;ajax\/test.html&#039;, { name: &quot;John&quot;, time: &quot;2pm&quot; }, function(data) {<\/p>\n<p>    $(&#039;#result&#039;).html(data);<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c$.get()\u7528\u4e8e\u4ece\u670d\u52a1\u5668\u83b7\u53d6\u6570\u636e\uff0c\u800c$.post()\u5219\u7528\u4e8e\u5411\u670d\u52a1\u5668\u53d1\u9001\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8003\u8651\u6027\u80fd\u548c\u5b89\u5168\u6027<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u4e2d\u4f7f\u7528jQuery\u52a0\u8f7d\u6587\u6863\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee3\u7801\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u6027\u80fd\u4e0a\u8981\u907f\u514d\u4e0d\u5fc5\u8981\u7684DOM\u64cd\u4f5c\u548c\u7f51\u7edc\u8bf7\u6c42\uff0c\u800c\u5b89\u5168\u6027\u4e0a\u5219\u9700\u8981\u6ce8\u610f\u9632\u8303\u53ef\u80fd\u7684XSS\u653b\u51fb\u548c\u6570\u636e\u6821\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>\u6027\u80fd\u4f18\u5316<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u4fdd\u8bc1\u52a0\u8f7d\u5185\u5bb9\u7684\u901f\u5ea6\u548c\u6548\u7387\uff0c\u53ef\u4ee5\u4f7f\u7528\u7f13\u5b58\u3001\u6279\u91cfDOM\u66f4\u65b0\u548c\u5408\u7406\u7684\u9009\u62e9\u5668\u6765\u4f18\u5316\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u5168\u63aa\u65bd<\/h4>\n<\/p>\n<p><p>\u5f53\u4f7f\u7528$.ajax()\u3001$.get()\u6216$.post()\u7b49\u65b9\u6cd5\u52a0\u8f7d\u8fdc\u7a0b\u6570\u636e\u65f6\uff0c\u5e94\u786e\u4fdd\u6570\u636e\u7684\u6e05\u6d01\uff0c\u9632\u6b62\u6f5c\u5728\u7684\u8de8\u7ad9\u811a\u672c\u653b\u51fb\uff08XSS\uff09\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cjQuery\u4e3aJavaScript\u9879\u76ee\u63d0\u4f9b\u4e86\u5f3a\u5927\u800c\u53c8\u7075\u6d3b\u7684\u6587\u6863\u52a0\u8f7d\u80fd\u529b\uff0c\u4f7f\u5f97\u9879\u76ee\u53ef\u4ee5\u5b9e\u73b0\u5feb\u901f\u54cd\u5e94\u548c\u4e30\u5bcc\u7684\u7528\u6237\u4ea4\u4e92\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u7684\u6b63\u786e\u4f7f\u7528\u548c\u7ec4\u5408\u6765\u5f00\u53d1\u9879\u76ee\uff0c\u53ef\u4ee5\u6781\u5927\u63d0\u5347\u9879\u76ee\u7684\u7528\u6237\u4f53\u9a8c\u548c\u529f\u80fd\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u5982\u4f55\u5728 JavaScript\u9879\u76ee\u4e2d\u4f7f\u7528jQuery\u6765\u52a0\u8f7d\u6587\u6863\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u4e3a\u4ec0\u4e48\u9009\u62e9\u5728JavaScript\u9879\u76ee\u4e2d\u4f7f\u7528jQuery\u6765\u52a0\u8f7d\u6587\u6863\uff1f<\/strong><\/p>\n<ul>\n<li>jQuery\u662f\u4e00\u4e2a\u6d41\u884c\u7684JavaScript\u5e93\uff0c\u63d0\u4f9b\u4e86\u7b80\u5316DOM\u64cd\u4f5c\u548c\u4e8b\u4ef6\u5904\u7406\u7684\u529f\u80fd\u3002\u901a\u8fc7\u4f7f\u7528jQuery\uff0c\u60a8\u53ef\u4ee5\u66f4\u5feb\u901f\u4e14\u66f4\u5bb9\u6613\u5730\u52a0\u8f7d\u6587\u6863\u5185\u5bb9\u3002<\/li>\n<li>jQuery\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5b9e\u7528\u7684\u529f\u80fd\u548c\u63d2\u4ef6\uff0c\u53ef\u4ee5\u52a0\u5feb\u5f00\u53d1\u901f\u5ea6\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u81f4\u7684\u8de8\u6d4f\u89c8\u5668\u652f\u6301\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u5728JavaScript\u9879\u76ee\u4e2d\u5f15\u5165jQuery\u5e93\uff1f<\/strong><\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u60a8\u9700\u8981\u4ecejQuery\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7djQuery\u5e93\uff08\u901a\u5e38\u4e3a.min\u6587\u4ef6\uff09\u3002<\/li>\n<li>\u7136\u540e\uff0c\u5c06\u4e0b\u8f7d\u7684\u5e93\u6587\u4ef6\u4fdd\u5b58\u5230\u60a8\u7684\u9879\u76ee\u6587\u4ef6\u5939\u4e2d\uff0c\u5e76\u4f7f\u7528HTML\u7684<code>&lt;script&gt;<\/code>\u6807\u7b7e\u5c06\u5176\u5f15\u5165\u5230\u60a8\u7684\u9879\u76ee\u4e2d\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-html\">&lt;script src=&quot;path\/to\/jquery.min.js&quot;&gt;&lt;\/script&gt;\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u4f7f\u7528jQuery\u52a0\u8f7d\u6587\u6863\u5185\u5bb9\uff1f<\/strong><\/p>\n<ul>\n<li>\u4e00\u65e6\u60a8\u5df2\u7ecf\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u4e86jQuery\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528jQuery\u7684\u9009\u62e9\u5668\u548c\u65b9\u6cd5\u6765\u9009\u62e9\u548c\u64cd\u4f5c\u6587\u6863\u4e2d\u7684\u5143\u7d20\u3002<\/li>\n<li>\u4f8b\u5982\uff0c\u4f7f\u7528<code>$(selector)<\/code>\u6765\u9009\u62e9\u4e00\u4e2a\u6216\u591a\u4e2a\u5143\u7d20\uff0c\u5e76\u4f7f\u7528jQuery\u63d0\u4f9b\u7684\u65b9\u6cd5\u6765\u4fee\u6539\u5176\u5185\u5bb9\u3001\u6837\u5f0f\u7b49\u3002<\/li>\n<li>\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528jQuery\u7684AJAX\u65b9\u6cd5\uff08\u4f8b\u5982<code>$.ajax<\/code>\u3001<code>$.get<\/code>\u548c<code>$.post<\/code>\uff09\u6765\u4ece\u670d\u52a1\u5668\u52a0\u8f7d\u5e76\u63d2\u5165\u6587\u6863\u5185\u5bb9\u3002<\/li>\n<li>\u4e0b\u9762\u662f\u4f7f\u7528jQuery\u52a0\u8f7d\u6587\u6863\u5185\u5bb9\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-javascript\">\/\/ \u9009\u62e9\u5e76\u4fee\u6539\u5143\u7d20\u5185\u5bb9\n$(&quot;h1&quot;).text(&quot;Hello, World!&quot;);\n\n\/\/ \u4f7f\u7528AJAX\u52a0\u8f7d\u5e76\u63d2\u5165\u6587\u6863\u5185\u5bb9\n$.get(&quot;path\/to\/content.html&quot;, function(data) {\n  $(&quot;#content&quot;).html(data);\n});\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u5728JavaScript\u9879\u76ee\u4e2d\u4f7f\u7528jQuery\u6765\u52a0\u8f7d\u6587\u6863\u5185\u5bb9\uff0c\u5e76\u8f7b\u677e\u64cd\u4f5c\u548c\u4fee\u6539\u6587\u6863\u4e2d\u7684\u5143\u7d20\u3002\u8bf7\u8bb0\u4f4f\uff0c\u5728\u4f7f\u7528jQuery\u4e4b\u524d\uff0c\u52a1\u5fc5\u6b63\u786e\u5f15\u5165jQuery\u5e93\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"jQuery \u662f\u4e00\u4e2a\u5feb\u901f\u3001\u5c0f\u5de7\u3001\u7279\u6027\u4e30\u5bcc\u7684 JavaScript \u5e93\uff0c\u5b83\u901a\u8fc7\u6613\u4e8e\u4f7f\u7528\u7684 API \u4f7f\u5f97 HTML [&hellip;]","protected":false},"author":3,"featured_media":153676,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/153671"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=153671"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/153671\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/153676"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=153671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=153671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=153671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}