{"id":3029,"date":"2016-01-20T13:17:58","date_gmt":"2016-01-20T05:17:58","guid":{"rendered":"https:\/\/www.ecjtu.com\/keith\/archives\/3029"},"modified":"2016-01-20T13:17:58","modified_gmt":"2016-01-20T05:17:58","slug":"%e5%88%b0%e5%ba%95%e6%98%af%e4%bb%80%e4%b9%88-%e8%af%a6%e8%a7%a3jquery%e7%9a%84%e7%ac%a6%e5%8f%b7%e5%92%8cinit%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.ecjtu.com\/keith\/archives\/3029","title":{"rendered":"$\u5230\u5e95\u662f\u4ec0\u4e48-\u8be6\u89e3jQuery\u7684$\u7b26\u53f7\u548cinit\u51fd\u6570"},"content":{"rendered":"<h3>\u524d\u8a00<\/h3>\n<p>\u672c\u6587\u6240\u6709\u4ee3\u7801\uff0c\u51fa\u81eajQuery.1.5.2\uff0c\u4e3a\u65b9\u4fbf\u7406\u89e3\uff0c\u5f15\u5165\u7c7b\u7684\u6982\u5ff5\uff0c\u867d\u7136jQuery\u4e0d\u662f\u57fa\u4e8e\u9762\u5411\u5bf9\u8c61\u601d\u60f3\u3002<\/p>\n<p>jQuery\u662f\u73b0\u5728\u6700\u6d41\u884c\u7684Javascript\u6846\u67b6\uff0c $\u662f\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u7b26\u53f7\uff0c\u5df2\u7ecf\u5728jQuery\u7559\u4e0b\u4e86\u6df1\u6df1\u7684\u70d9\u5370\u3002<br \/>\n<strong>\u90a3\u4e48$\u5230\u5e95\u662f\u4ec0\u4e48\u4e1c\u897f<\/strong>\uff0c\u5b83\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\uff0c\u4e5f\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u6587\u6863\u5bf9\u8c61\uff0c\u4ea6\u6216\u8005\u4e00\u4e2a\u51fd\u6570\uff0c\u4e5f\u53ef\u4ee5\u8c03\u7528\u4e00\u4e2a\u51fd\u6570\u3002<br \/>\n\u63a5\u4e0b\u6765\u6211\u4f1a\u5f7b\u5e95\u5206\u6790\u8fd9\u4e2a\u7b26\u53f7\u80cc\u540e\u9690\u85cf\u7684\u79d8\u5bc6\u3002<\/p>\n<p>jQuery\uff0c\u9ad8\u6548\uff0c\u7cbe\u70bc\uff0c\u7279\u522b\u662f\u5bf9DOM\u5143\u7d20\u5bf9\u8c61\u64cd\u4f5c\u7684\u7b80\u5316\uff0c\u5f88\u5927\u7a0b\u5ea6\u4e0a\u5c06\u524d\u7aef\u7a0b\u5e8f\u5458\u4ece\u4e00\u5927\u5806\u5197\u4f59\u7684\u4ee3\u7801\u89e3\u653e\u51fa\u6765\uff0c\u5927\u5927\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\uff01\u5bf9\u591a\u6d4f\u89c8\u5668\u7684\u517c\u5bb9\u6027\uff0c\u4e5f\u6700\u5927\u9650\u5ea6\u8ba9\u7a0b\u5e8f\u5458\u6446\u8131\u5404\u79cdbug\u7684\u7ea0\u7f20<\/p>\n<p>$\u7b26\u53f7\u4f5c\u4e3a\u5143\u7d20\u9009\u62e9\u5668\u7684\u7b80\u5199\uff0c\u6700\u65e9\u662f\u7531Prototype\u5e93\u4f7f\u7528\uff0c\u6765\u7b80\u5199getElementById\uff0cjQuery\u6cbf\u88ad\u8fd9\u4e00\u7406\u5ff5\uff0c\u5e76\u53d1\u626c\u5149\u5927\uff0c\u4f7f$\u7b26\u53f7\u6210\u4e3a\u4e86jQuery\u6700\u522b\u5177\u4e00\u683c\u7684\u7279\u70b9\u3002\u90a3\u4e48\u5728jQuery\u4e2d\uff0c$\u7b26\u53f7\u5230\u5e95\u662f\u5565\uff1f<\/p>\n<p>\u719f\u6089jQuery\u7684\u4eba\u5e94\u8be5\u77e5\u9053\uff0c\u51e0\u4e4ejQuery\u6240\u6709\u64cd\u4f5c\uff0c\u90fd\u662f\u4ece$\u7b26\u53f7\u5f00\u59cb\uff0c\u5f53\u4f5c\u4e3a\u5143\u7d20\u9009\u62e9\u5668\u7684\u65f6\u5019\uff0c\u64cd\u4f5c\u7ed3\u679c\u8fd4\u56de\u7684\u662f\u4e00\u4e2ajQuery\u5bf9\u8c61\u3002<br \/>\n\u90a3\u4e48\uff0c\u73b0\u5728\u5c31\u770bjQuery\u7c7b\u7684\u6784\u9020\u51fd\u6570\u7684\u4e3b\u8981\u4ee3\u7801<\/p>\n<h3>jQuery\u5bf9\u8c61\u7684\u6784\u9020\u51fd\u6570<\/h3>\n<pre class=\"lang:js decode:true \">var jQuery = (function() {\r\n\t\/\/\u521b\u5efajQuery\u5bf9\u8c61,\u7ed9\u6240\u6709\u7684jQuery\u65b9\u6cd5\u63d0\u4f9b\u7edf\u4e00\u7684\u5165\u53e3,\u907f\u514d\u7e41\u7410\u96be\u8bb0\r\n\tvar jQuery = function( selector, context ) {\r\n\t\t\/\/jQuery\u7684\u6784\u9020\u5bf9\u8c61,\u8c03\u7528\u4e86jQuery.fn.init\u65b9\u6cd5\r\n\t\t\/\/\u6700\u540e\u8fd4\u56dejQuery.fn.init\u7684\u5bf9\u8c61\r\n\t\treturn new jQuery.fn.init( selector, context, rootjQuery );\r\n\t},\r\n\r\n\t.....\r\n\r\n\t\/\/\u5b9a\u4e49jQuery\u7684\u539f\u578b,jQuery.fn\u6307\u5411jQuery.prototype\u5bf9\u8c61\r\n\tjQuery.fn = jQuery.prototype = {\r\n\t\/\/\u91cd\u65b0\u6307\u5b9a\u6784\u9020\u51fd\u6570\u5c5e\u6027,\u56e0\u4e3a\u9ed8\u8ba4\u6307\u5411jQuery.fn.init\r\n\tconstructor: jQuery,\r\n\tinit: function( selector, context, rootjQuery ) {.....},\r\n\r\n\t......\r\n\r\n\t}\r\n\r\n\t......\r\n\r\n\t\/\/\u8fd4\u56dejQuery\u53d8\u91cf,\u540c\u65f6\u5b9a\u4e49\u5c06\u5168\u5c40\u53d8\u91cfwindow.jQuery\u548cwindow.$\u6307\u5411jQuery\r\n\treturn (window.jQuery = window.$ = jQuery);\r\n\r\n})();\r\n<\/pre>\n<p>\u4ece\u4ee5\u4e0ajQuery\u7684\u4e3b\u4f53\u7ed3\u6784\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0c\u5f53\u9996\u6b21\u6267\u884c\u5b8c\u6bd5\u540e\uff0c<strong>\u5168\u5c40\u53d8\u91cf$\u548cjQuery\uff0c\u90fd\u662f\u6307\u5411\u4e86var jQuery=function\uff08selector\uff0ccontext\uff09{}\u8fd9\u4e2a\u51fd\u6570\uff0c\u8fd9\u91cc\uff0c\u5c31\u53ef\u4ee5\u4e0b\u4e2a\u7ed3\u8bba\uff0c$\u5c31\u662fjQuery\u7684\u522b\u540d\uff0c\u5b9e\u9645\u8c03\u7528jQuery.fn.init<\/strong>\u3002<\/p>\n<p>\u518d\u770b\u770bvar jQuery=function\uff08selector\uff0ccontext\uff09{}\u8fd9\u4e2a\u6784\u9020\u51fd\u6570\uff0c\u4e3a\u4ec0\u4e48\u91cc\u9762\u4e0d\u76f4\u63a5\u8fd4\u56dejQuery\u7684\u5bf9\u8c61\uff1f\u800c\u662f\u8c03\u7528\u53e6\u5916\u4e00\u4e2a\u65b9\u6cd5\u5462\uff1f<\/p>\n<p>\u5047\u5982\u76f4\u63a5\u8fd4\u56de\u5bf9\u8c61\u7684\u8bdd\uff0c\u6bcf\u6b21\u4f7f\u7528jQuery\u5bf9\u8c61\uff0c\u90fd\u8981new jQuery() \u8fd9\u6837\u7684\u8bdd\uff0c\u5341\u5206\u4e0d\u65b9\u4fbf\uff0c\u76f4\u63a5\u5c06new \u8fd9\u4e2a\u64cd\u4f5c\u5c01\u88c5\u5728jQuery\u6784\u9020\u51fd\u6570\u91cc\u9762\uff0c\u7b80\u5316\u4e86\u5b9e\u4f8b\u5316\u7684\u64cd\u4f5c\uff0c\u540c\u65f6\uff0cjQuery\u901a\u8fc7\u4e86jQuery\u6216\u8005$\u7b26\u53f7\uff0c\u7edf\u4e00\u4e86\u63a5\u53e3\uff0c\u65b9\u4fbf\u4ee3\u7801\u7684\u7f16\u5199\uff0c\u5316\u7e41\u4e3a\u7b80\uff0c\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n<p>\u90a3\u4e48jQuery\u7c7b\u5177\u4f53\u662f\u5982\u4f55\u6784\u9020\u7684\uff1f\u5c45\u7136\u80fd\u652f\u6301\u5404\u79cd\u53c2\u6570\u5f62\u5f0f\u7684\u8c03\u7528<br \/>\n\u76f4\u63a5\u4e0ajQuery.fn.init\u7684\u201c\u8f95\u9a6c\u201d\uff0cjQuery\u7684\u771f\u5b9e\u6784\u9020\u5668\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5b8c\u5168\u6e05\u695a\u4e86<\/p>\n<pre class=\"lang:js decode:true \">\/*\u6240\u6709\u67e5\u627e\u6216\u751f\u6210\u5143\u7d20\u7684\u7ed3\u679c\uff0c\u5c01\u88c5\u4e3ajQuery\u5bf9\u8c61\u6570\u7ec4\u8fd4\u56de.\r\n\t*\/\r\n\tinit: function( selector, context, rootjQuery ) {\r\n\t\tvar match, elem, ret, doc;\r\n\r\n\t\t\/\/ 1)\u5904\u7406 $(\"\"), $(null), or $(undefined)\r\n\t\t\/\/this\u6307\u5411jQuery\u5bf9\u8c61\r\n\t\tif ( !selector ) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t\/\/ 2)\u5904\u7406 $(DOMElement)\r\n\t\t\/\/selector.nodeType\u5f97\u77e5\u4e3aDOM\u5143\u7d20,\u5982\u679c\u662fDOM\u5143\u7d20\u76f4\u63a5\u653e\u8fdbjQuery\u5bf9\u8c61\u6570\u7ec4\u4e2d\r\n\t\tif ( selector.nodeType ) {\r\n\t\t\tthis.context = this[0] = selector;\r\n\t\t\tthis.length = 1;\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t\/\/3)body\u5143\u7d20\u53ea\u51fa\u73b0\u4e00\u6b21, \u4f18\u5316\u67e5\u627e\r\n\t\tif ( selector === \"body\" &amp;&amp; !context &amp;&amp; document.body ) {\r\n\t\t\tthis.context = document;\r\n\t\t\tthis[0] = document.body;\r\n\t\t\tthis.selector = \"body\";\r\n\t\t\tthis.length = 1;\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t\/\/4)\u5982\u679c\u662f\u5b57\u7b26\u4e32,\u6709\u516d\u79cd\u60c5\u51b5,\r\n\t\t\/*\r\n\t\t*(1)\u5355\u4e2ahtml\u5143\u7d20 \u4e0d\u5e26\u5c5e\u6027\u5bf9\u8c61\u5b57\u9762\u91cf \uff1acreateElement + merge\r\n\t\t*(2)\u5355\u4e2ahtml\u5143\u7d20 \u5e26\u5c5e\u6027\u5bf9\u8c61\u5b57\u9762\u91cf \uff1acreateElement + attr + merge\r\n\t\t*(3)\u591a\u4e2ahtml\u5143\u7d20  \uff1abuildFragment + merge\r\n\t\t*(4)#id \u4e0d\u5e26context\t\uff1agetElementById\u6216\u8005getElementById + Sizzle\r\n\t\t*(5)#id \u5e26context \uff1aSizzle\r\n\t\t*(6)experession string \uff1aSizzle\r\n\t\t*(7)\u6807\u7b7e\u9009\u62e9\u5668 \uff1aSizzle\uff08\u5185\u7f6egetElementByTagName\uff09\r\n\t\t*\/\r\n\t\tif ( typeof selector === \"string\" ) {\r\n\t\t\t\/\/ \u5224\u65ad\u662f\u5426\u4e3aHTML string \u8fd8\u662f ID\r\n\t\t\t\/\/\u5982\u679c\u662fHTML strings  match[1] \u975e\u7a7a\r\n\t\t\t\/\/\u5982\u679c\u662fID strings match[1] \u7a7a\r\n\t\t\t\/\/quickExpr = \/^(?:[^&lt;]*(&lt;[\\w\\W]+&gt;)[^&gt;]*$|#([\\w\\-]+)$)\/,\r\n\t\t\tmatch = quickExpr.exec( selector );\r\n\r\n\t\t\t\/\/ \u5206\u6790\u5339\u914d\u7ed3\u679c\uff0c\u4e14\u5f53#id\u6ca1\u6709context\u53c2\u6570\uff0c\u4f8b\u5982\u4e0d\u662f$('#xxx',xxx)\r\n\t\t\tif ( match &amp;&amp; (match[1] || !context) ) {\r\n\r\n\t\t\t\t\/\/ \u5904\u7406HTML\u5b57\u7b26 $(html) -&gt; $(array)\r\n\t\t\t\tif ( match[1] ) {\r\n\t\t\t\t\t\/\/\u5982\u679ccontext\u4e3ajQuery\u5bf9\u8c61\uff0c\u5219\u53d6\u7528\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u5373\u662fcontext[0]\r\n\t\t\t\t\tcontext = context instanceof jQuery ? context[0] : context;\r\n\t\t\t\t\t\/\/\u53d6\u5f97document\u6587\u6863\r\n\t\t\t\t\tdoc = (context ? context.ownerDocument || context : document);\r\n\r\n\t\t\t\t\t\/\/\u5224\u65ad\u662f\u5426\u4e3a\u5355\u4e2a\u5143\u7d20\u5b57\u7b26\u4e32\r\n\t\t\t\t\tret = rsingleTag.exec( selector );\r\n\t\t\t\t\t\/\/\u5355\u4e2a\u5143\u7d20\r\n\t\t\t\t\tif ( ret ) {\r\n\t\t\t\t\t\t\/\/\u5e26\u5bf9\u8c61\u5c5e\u6027\u5b57\u9762\u91cf\r\n\t\t\t\t\t\t\/\/\u68c0\u67e5context\u662f\u5426\u4e3a\u5bf9\u8c61\u5b57\u9762\u91cf,\u9002\u7528\u573a\u666f\r\n\t\t\t\t\t\t\/\/\u4f8b\u5982$('&lt;div&gt;', { 'id': 'test', 'class': 'test' });\r\n\t\t\t\t\t\tif ( jQuery.isPlainObject( context ) ) {\r\n\t\t\t\t\t\t\tselector = [ document.createElement( ret[1] ) ];\r\n\t\t\t\t\t\t\tjQuery.fn.attr.call( selector, context, true );\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\/\/\u4e0d\u5e26\u5bf9\u8c61\u5b57\u9762\u91cf\r\n\t\t\t\t\t\t\/\/\u4f8b\u5982$('&lt;div&gt;')\r\n\t\t\t\t\t\t\tselector = [ doc.createElement( ret[1] ) ];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\/\/\u5982\u679c\u662f\u591a\u4e2a\u5143\u7d20\u5b57\u7b26\u4e32\uff0c\u4f8b\u5982$('&lt;div&gt;&lt;a&gt;&lt;\/a&gt;&lt;\/div&gt;')\r\n\t\t\t\t\t\tret = jQuery.buildFragment( [ match[1] ], [ doc ] );\r\n\t\t\t\t\t\tselector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\/\/\u5c06\u751f\u6210\u7ed3\u679cselector \u5408\u5e76\u5230jQuery\u5bf9\u8c61\u4e2d\r\n\t\t\t\t\treturn jQuery.merge( this, selector );\r\n\r\n\t\t\t\t\/\/ \u5904\u7406$(\"#id\"),\u4f8b\u5982$(\"#xxx\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\telem = document.getElementById( match[2] );\r\n\r\n\t\t\t\t\tif ( elem &amp;&amp; elem.parentNode ) {\r\n\t\t\t\t\t\t\/\/\u5904\u7406IE\u548cOpera ID \u4e0e Name \u6df7\u6dc6\u7684bug,\u4f7f\u7528Sizzle\u67e5\u627e\r\n\t\t\t\t\t\tif ( elem.id !== match[2] ) {\r\n\t\t\t\t\t\t\treturn rootjQuery.find( selector );\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\/\/ \u5426\u5219\uff0c\u7b80\u5355\u63d2\u5165jQuery\u5bf9\u8c61\u6570\u7ec4\r\n\t\t\t\t\t\tthis.length = 1;\r\n\t\t\t\t\t\tthis[0] = elem;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.context = document;\r\n\t\t\t\t\tthis.selector = selector;\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t}\r\n\r\n\t\t\t\/\/ \u5904\u7406 $(expr, $(...))\uff0c\u4f7f\u7528Sizzle\u67e5\u627e\uff0c\u4f8b\u5982$(\"div\"),$('div &gt; a'),$('div,a'),$('div:first')\r\n\t\t\t} else if ( !context || context.jquery ) {\r\n\t\t\t\treturn (context || rootjQuery).find( selector );\r\n\r\n\t\t\t\/\/ \u5904\u7406: $(expr, context),\u4f8b\u5982$('div a');\u6216\u8005$('a','div')\u6216\u8005$('div').find('a');\r\n\t\t\t} else {\r\n\t\t\t\treturn this.constructor( context ).find( selector );\r\n\t\t\t}\r\n\r\n\t\t\/\/5)\u5904\u7406: $(function),\u8bbe\u7f6eDOM\u8f7d\u7684\u65f6\u5019\u7ed1\u5b9a\u7684\u51fd\u6570,\u7b49\u540c\u4e8e$().ready(){foo}\r\n\t\t} else if ( jQuery.isFunction( selector ) ) {\r\n\t\t\treturn rootjQuery.ready( selector );\r\n\t\t}\r\n\t\t\/\/6)\u5904\u7406\uff1a$($(...))\uff0c\u5b8c\u6210\u514b\u9686jQuery\u5bf9\u8c61\u7684\u7b80\u5355\u53c2\u6570\uff0c\u5177\u4f53\u7531makeArray\u5b8c\u6210\r\n\t\tif (selector.selector !== undefined) \u5b8c\u6210\u52a0{\r\n\t\t\tthis.selector = selector.selector;\r\n\t\t\tthis.context = selector.context;\r\n\t\t}\r\n\t\t\/\/\u4f7f\u7528makeArray\uff0c\u4e3ajQuery\u5bf9\u8c61\u6dfb\u52a0\u5143\u7d20,\u4f8b\u5982$([1,2]);\r\n\t\treturn jQuery.makeArray( selector, this );\r\n\t},\r\n<\/pre>\n<p>\u4ece\u6e90\u7801\u53ef\u4ee5\u770b\u51fa\uff0cjQuery \u901a\u8fc7\u5404\u79cd\u6761\u4ef6\u5224\u65ad\u548c\u5f3a\u5927\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5b9e\u73b0\u4e86\u5404\u79cd\u53c2\u6570\u7684\u8c03\u7528\u3002<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p><strong>$\u7b26\u53f7\uff0c\u5176\u5b9e\u662f\u5bf9jQuery\u7c7b\u6784\u9020\u51fd\u6570\u7684\u5f15\u7528\uff0c\u6b64\u51fd\u6570\u5b9e\u9645\u8c03\u7528\u4e86jQuery.fn.init(\u5373\u662fjQuery.prototype.init)\u6765\u751f\u6210jQuery\u5bf9\u8c61,\u5176\u4e2djQuery.prototype\u7684\u6240\u6709\u65b9\u6cd5\u90fd\u88abjQuery\u7684\u5bf9\u8c61\u7ee7\u627f\u3002$.func\u5b9e\u9645\u662fjQuery\u7c7b\u7684\u9759\u6001\u65b9\u6cd5\uff0c\u6240\u4ee5$\u5373\u662fjQuery\u7c7b\u7684\u6784\u9020\u51fd\u6570\uff0c\u652f\u6301\u5404\u79cd\u6761\u4ef6\u7684\u67e5\u627e\u548c\u751f\u6210\u5e76\u8fd4\u56deDOM\u5bf9\u8c61\u6784\u6210jQuery\u5bf9\u8c61\uff0c\u540c\u65f6\u4e5f\u662f\u4e00\u4e2a\u7c7b\uff0c\u662f\u6240\u6709jQuery\u9759\u6001\u65b9\u6cd5\u7684\u5165\u53e3<\/strong>\uff0c\u4f8b\u5982\u53ef\u4ee5\u4f7f\u7528\u4e2a$.ajax()\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$\u7b26\u53f7\uff0c\u5176\u5b9e\u662f\u5bf9jQuery\u7c7b\u6784\u9020\u51fd\u6570\u7684\u5f15\u7528\uff0c\u6b64\u51fd\u6570\u5b9e\u9645\u8c03\u7528\u4e86jQuery.fn.init(\u5373\u662fjQuery.prototype.init)\u6765\u751f\u6210jQuery\u5bf9\u8c61,\u5176\u4e2djQuery.prototype\u7684\u6240\u6709\u65b9\u6cd5\u90fd\u88abjQuery\u7684\u5bf9\u8c61\u7ee7\u627f\u3002$.func\u5b9e\u9645\u662fjQuery\u7c7b\u7684\u9759\u6001\u65b9\u6cd5\uff0c\u6240\u4ee5$\u5373\u662fjQuery\u7c7b\u7684\u6784\u9020\u51fd\u6570\uff0c\u652f\u6301\u5404\u79cd\u6761\u4ef6\u7684\u67e5\u627e\u548c\u751f\u6210\u5e76\u8fd4\u56deDOM\u5bf9\u8c61\u6784\u6210jQuery\u5bf9\u8c61\uff0c\u540c\u65f6\u4e5f\u662f\u4e00\u4e2a\u7c7b\uff0c\u662f\u6240\u6709jQuery\u9759\u6001\u65b9\u6cd5\u7684\u5165\u53e3\uff0c\u4f8b\u5982\u53ef\u4ee5\u4f7f\u7528\u4e2a$.ajax()\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[923],"_links":{"self":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/3029"}],"collection":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/comments?post=3029"}],"version-history":[{"count":1,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/3029\/revisions"}],"predecessor-version":[{"id":3030,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/posts\/3029\/revisions\/3030"}],"wp:attachment":[{"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/media?parent=3029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/categories?post=3029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecjtu.com\/keith\/wp-json\/wp\/v2\/tags?post=3029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}