{"id":30318,"date":"2020-02-14T19:26:14","date_gmt":"2020-02-14T11:26:14","guid":{"rendered":"http:\/\/4563.org\/?p=30318"},"modified":"2020-02-14T19:26:14","modified_gmt":"2020-02-14T11:26:14","slug":"%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%aajquery%e8%8e%b7%e5%8f%96%e5%8a%a8%e6%80%81%e6%b7%bb%e5%8a%a0%e5%85%83%e7%b4%a0%e7%9a%84%e6%96%87%e6%9c%ac%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=30318","title":{"rendered":"\u8bf7\u6559\u4e00\u4e2aJQuery\u83b7\u53d6\u52a8\u6001\u6dfb\u52a0\u5143\u7d20\u7684\u6587\u672c\u7684\u95ee\u9898"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>giano<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:16:57\t<\/p>\n<h3>\u8bf7\u6559\u4e00\u4e2aJQuery\u83b7\u53d6\u52a8\u6001\u6dfb\u52a0\u5143\u7d20\u7684\u6587\u672c\u7684\u95ee\u9898<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 giano \u4e8e 2019-12-30 14:24 \u7f16\u8f91 <\/p>\n<p> \u83dc\u9e1f\u8bf7\u6559\uff0c\u95ee\u9898\u63cf\u8ff0\u5982\u4e0b\uff1a<\/p>\n<p>  A\u9875\u9762\u5185\u6709\u82e5\u5e72\u4e2a\u8be6\u60c5\u9875\u9762\u7684\u94fe\u63a5\uff08B1\u3001B2\u3001B3\uff09\u3002\u6211\u7684\u9700\u6c42\u662f\u4eceB1\u3001B2\u3001B3\u8fd9\u4e9b\u8be6\u60c5\u9875\u9762\u4e2d\u83b7\u53d6\u67d0\u4e2a\u5143\u7d20\u7684\u503c\u3002\u6211\u7528JQuery\u7684load\u65b9\u6cd5\u5df2\u7ecf\u62ff\u5230\u4e86\uff0c\u5e76\u5728A\u9875\u9762\u91cc\u7528JQuery\u65b0\u5efa\u4e86div\u6682\u65f6\u5b58\u653e\uff1a<br \/>  &lt;div id=&quot;mydiv&quot;&gt;&lt;a class=&quot;studentid&quot;&gt;S-201901&lt;\/a&gt;&lt;\/div&gt;<br \/>  \u8fd9\u4e2adiv\u5df2\u7ecf\u6b63\u786e\u663e\u793a\u5728A\u9875\u9762\u4e0a\u4e86\u3002\u6211\u7684\u76ee\u7684\u662f\u83b7\u53d6\u201cS-201901\u201d\u8fd9\u4e2a\u6587\u672c\u503c\uff0c\u5728A\u9875\u9762\u91cc\u8fdb\u884c\u4e00\u4e9b\u64cd\u4f5c\u3002\u4f46\u662f\u6211\u7528JQuery\u83b7\u53d6\u4e0d\u5230\u8fd9\u4e9b\u65b0\u521b\u5efa\u7684div\u7684\u6587\u672c\uff0c$(&quot;.studentid&quot;).text()\u662f\u7a7a\u7684\uff0c\u6211\u767e\u5ea6\u4e86\u4e00\u4e0b\uff0c\u8bf4\u662fJQuery\u662f\u5728\u9875\u9762\u52a0\u8f7d\u7684\u65f6\u5019\u53bb\u83b7\u53d6\u5143\u7d20\u7684\uff0c\u540e\u671f\u6dfb\u52a0\u7684\u5143\u7d20\u83b7\u53d6\u4e0d\u5230\u3002<\/p>\n<p>  \u90a3\u4e48\u8bf7\u95ee\uff0c\u5982\u4f55\u624d\u80fd\u5f97\u5230\u201cS-201901\u201d\u8fd9\u4e2a\u6587\u672c\u5462\uff1f\u5e72\u7740\u6025\u6ca1\u529e\u6cd5\u554a\uff01<\/p>\n<p>  \u8bf7\u5927\u5bb6\u4e0d\u541d\u6307\u6559\uff01\u8c22\u8c22\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Mr.<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:21:02\t<\/p>\n<h3><\/h3>\n<p>  \t\tA\u9875\u9762\u662f\u600e\u4e48\u5305\u542b\u5176\u5b83\u9875\u9762\u7684\uff0ciframe ?\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>giano<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:22:58\t<\/p>\n<h3><\/h3>\n<p>  \t\tMr. \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:21<br \/>  A\u9875\u9762\u662f\u600e\u4e48\u5305\u542b\u5176\u5b83\u9875\u9762\u7684\uff0ciframe ?<\/p>\n<p> \u5176\u5b9e\u4e5f\u4e0d\u662f\u5305\u542b\uff0c\u5c31\u662fA\u9875\u9762\u542b\u6709B\u9875\u9762\u7684URL\uff0c\u8be6\u60c5\u9875\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imnpc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:23:02\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u641c\u4e0b$(document).on<\/p>\n<p>  \u524d\u51e0\u5929\u9047\u5230\u7c7b\u4f3c\u95ee\u9898\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Mr.<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:28:54\t<\/p>\n<h3><\/h3>\n<p>  \t\tgiano \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:22<br \/>  \u5176\u5b9e\u4e5f\u4e0d\u662f\u5305\u542b\uff0c\u5c31\u662fA\u9875\u9762\u542b\u6709B\u9875\u9762\u7684URL\uff0c\u8be6\u60c5\u9875\u3002<\/p>\n<p>  \u4f60\u628a $(&quot;.studentid&quot;).text() \u653e\u5728 load \u4e4b\u540e\u6267\u884c\u5457\uff0c\u697c\u4e0a\u8bf4\u7684 on \u53ea\u9002\u7528\u4e8e\u7ed1\u5b9a\u4e8b\u4ef6\uff0c\u5982\u679c\u662f\u4f60\u8981\u5bf9\u6587\u672c\u6709\u5176\u5b83\u64cd\u4f5c on \u662f\u6ca1\u7528\u7684\uff0c\u5c31\u5728 load \u7684\u56de\u8c03\u51fd\u6570\u4e2d\u6267\u884c\u5c31\u597d\u4e86<\/p>\n<p>  https:\/\/www.runoob.com\/jquery\/ajax-load.html \u770b\u7b2c\u4e09\u4e2a\u53c2\u6570 callback\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Evan<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:41:28\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e24\u4e2a\u65b9\u5f0f\u90fd\u4e0d\u884c\u5417\uff1f<\/p>\n<p>  $(document).ready(function(){<br \/>  &nbsp; &nbsp; console.log($(&quot;.studentid&quot;).text())<br \/>  })<\/p>\n<p>  window.onload=function(){<br \/>  &nbsp; &nbsp; console.log($(&quot;.studentid&quot;).text())<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>giano<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 15:13:22\t<\/p>\n<h3><\/h3>\n<p>  \t\tEvan \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:41<br \/>  \u8fd9\u4e24\u4e2a\u65b9\u5f0f\u90fd\u4e0d\u884c\u5417\uff1f<\/p>\n<p> \u8bd5\u4e86\uff0clog\u90fd\u662f\u7a7a\u7684\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>giano<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 15:19:10\t<\/p>\n<h3><\/h3>\n<p>  \t\tMr. \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 14:28<br \/>  \u4f60\u628a $(&quot;.studentid&quot;).text() \u653e\u5728 load \u4e4b\u540e\u6267\u884c\u5457\uff0c\u697c\u4e0a\u8bf4\u7684 on \u53ea\u9002\u7528\u4e8e\u7ed1\u5b9a\u4e8b\u4ef6\uff0c\u5982\u679c\u662f\u4f60\u8981\u5bf9\u6587\u672c\u6709 &#8230;<\/p>\n<p> \u8c22\u8c22\uff01\u60a8\u771f\u662f\u5927\u4f6c\uff0c\u8fd9\u65b9\u6cd5\u7ba1\u7528\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wangjianjilei<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 15:20:01\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e2a\u662fdom\u751f\u547d\u5468\u671f\u95ee\u9898<br \/>  \u65e9\u671f\u7248\u672c\u7528\u5192\u6ce1\u89e3\u51b3<br \/>  1.7\u7248\u672c\u4e4b\u540e\u53ef\u4ee5\u8fd9\u4e48\u83b7\u53d6<\/p>\n<p>  $(&quot;body&quot;).on(&quot;click&quot;,&quot;#myid&quot;,function(){<br \/>  &nbsp; &nbsp; alert(1)<br \/>  })\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wangjianjilei<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 15:22:49\t<\/p>\n<h3><\/h3>\n<p>  \u8fd9\u4e2a\u662fdom\u751f\u547d\u5468\u671f\u95ee\u9898<br \/>  \u65e9\u671f\u7248\u672c\u7528\u5192\u6ce1\u89e3\u51b3<br \/>  1.7\u7248\u672c\u4e4b\u540e\u53ef\u4ee5\u8fd9\u4e48\u83b7\u53d6<br \/>  $(&quot;body&quot;).on(&quot;click&quot;,&quot;.studentid&quot;,function(){<br \/>  &nbsp; &nbsp;$(this).text()<br \/>  })<br \/>  #5\u7684\u65b9\u6cd5\u4e5f\u53ef\u4ee5\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>giano \u5927\u4f6c\u6709\u8bdd\u8bf4 : 201&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/30318"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30318"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/30318\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30318"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}