{"id":37374,"date":"2025-05-15T22:28:04","date_gmt":"2025-05-15T14:28:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/37374.html"},"modified":"2025-05-15T22:28:04","modified_gmt":"2025-05-15T14:28:04","slug":"%e7%94%a8%e8%87%aa%e5%86%99%e7%9a%84jquery%e5%ba%93ajax%e5%ae%9e%e7%8e%b0%e4%ba%86%e7%9c%81%e5%b8%82%e8%81%94%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/37374.html","title":{"rendered":"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8"},"content":{"rendered":"<p>1. \u7701\u5e02\u8054\u52a8&#xff1a;\u5728\u7f51\u9875\u4e0a&#xff0c;\u9009\u62e9\u5bf9\u5e94\u7684\u7701\u4efd\u4e4b\u540e&#xff0c;\u52a8\u6001\u7684\u5173\u8054\u51fa\u8be5\u7701\u4efd\u5bf9\u5e94\u7684\u5e02\u3002\u9009\u62e9\u5bf9\u5e94\u7684\u5e02\u4e4b\u540e&#xff0c;\u52a8\u6001\u5730\u5173\u8054\u51fa\u57ce\u5e02\u5bf9\u5e94\u7684\u533a\u3002<\/p>\n<p>2. \u8bbe\u8ba1\u6570\u636e\u5e93\u8868<\/p>\n<p>t_area &#xff08;\u533a\u57df\u8868&#xff09;<br \/>\nid(PK-\u81ea\u589e)  codenamepcode<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1001 \u6cb3\u5317\u7701null<br \/>\n2002 \u6cb3\u5357\u7701null<br \/>\n3003 \u77f3\u5bb6\u5e84    001<br \/>\n4004 \u90af\u90f8    001<br \/>\n5005 \u90d1\u5dde    002<br \/>\n6006 \u6d1b\u9633    002<br \/>\n7               007      \u6c5f\u82cf       null<br \/>\n8               008      \u5357\u4eac       007<\/p>\n<p>\u5c06\u5168\u56fd\u6240\u6709\u7684\u7701\u3001\u5e02\u3001\u533a\u3001\u53bf\u7b49\u4fe1\u606f\u90fd\u5b58\u50a8\u5230\u4e00\u5f20\u8868\u5f53\u4e2d\u3002<br \/>\n\u91c7\u7528\u7684\u5b58\u50a8\u65b9\u5f0f\u5b9e\u9645\u4e0a\u662fcode pcode\u5f62\u52bf\u3002 <\/p>\n<p>3. \u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u6a21\u62df&#xff0c;\u6240\u4ee5\u5efa\u7684\u6570\u636e\u5e93\u662f\u4e0d\u5b8c\u6574\u7684&#xff0c;\u60f3\u8981\u5b8c\u6574\u7684\u6570\u636e\u5e93&#xff0c;\u53ef\u4ee5\u53bb\u7f51\u4e0a\u627e\u3002<\/p>\n<p>4. \u4e0a\u4ee3\u7801<\/p>\n<p>&#xff08;1&#xff09;\u81ea\u5199\u7684jQquery\u5e93<\/p>\n<p>function jQuery(selector){ \/\/ selector\u53ef\u80fd\u662f#id&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u5176\u4ed6\u7684\u9009\u62e9\u5668&#xff0c;\u4f8b\u5982\u7c7b\u9009\u62e9\u5668&#xff1a;.class<br \/>\n    if(typeof selector &#061;&#061; &#034;string&#034;){<br \/>\n        if (selector.charAt(0) &#061;&#061; &#039;#&#039;) {<br \/>\n            domObj &#061; document.getElementById(selector.substring(1));<br \/>\n            return new jQuery();<br \/>\n        }<br \/>\n    }<br \/>\n    if(typeof selector &#061;&#061; &#034;function&#034;){<br \/>\n        window.onload &#061; selector;<br \/>\n    }<br \/>\n    this.html &#061; function(htmlStr){<br \/>\n        domObj.innerHTML &#061; htmlStr;<br \/>\n    }<br \/>\n    this.click &#061; function(fun){<br \/>\n        domObj.onclick &#061; fun;<br \/>\n    }<br \/>\n    this.val &#061; function(v){<br \/>\n        if (v &#061;&#061; undefined) {<br \/>\n            return domObj.value;<br \/>\n        }else{<br \/>\n            domObj.value &#061; v;<br \/>\n        }<br \/>\n    }<br \/>\n    this.change &#061; function(fun){<br \/>\n        domObj.onchange &#061; fun;<br \/>\n    }<br \/>\n    \/\/ \u9759\u6001\u7684\u65b9\u6cd5&#xff1a;\u53d1\u9001ajax\u8bf7\u6c42<br \/>\n    jQuery.ajax &#061; function(jsonArgs){<br \/>\n        var xhr &#061; new XMLHttpRequest();<br \/>\n        xhr.onreadystatechange &#061; function(){<br \/>\n            if (this.readyState &#061;&#061; 4) {<br \/>\n                if (this.status &#061;&#061; 200) {<br \/>\n                    var jsonObj &#061; JSON.parse(this.responseText);<br \/>\n                    jsonArgs.success(jsonObj);<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n        if (jsonArgs.type.toUpperCase() &#061;&#061; &#034;POST&#034;) {<br \/>\n            xhr.open(&#034;POST&#034;,jsonArgs.url,jsonArgs.async);<br \/>\n            xhr.setRequestHeader(&#034;Content-Type&#034;,&#034;application\/x-www-form-urlencoded&#034;)<br \/>\n            xhr.send(jsonArgs.data);<br \/>\n        }<br \/>\n        if (jsonArgs.type.toUpperCase() &#061;&#061; &#034;GET&#034;) {<br \/>\n            xhr.open(&#034;GET&#034;,jsonArgs.url &#043; &#034;?&#034; &#043; jsonArgs.data,jsonArgs.async);<br \/>\n            xhr.send();<br \/>\n        }<br \/>\n    }<br \/>\n}<br \/>\n$&#061;jQuery;<\/p>\n<p>&#xff08;2&#xff09;html\u6587\u4ef6&#xff08;Ajax\u8bf7\u6c42&#xff09;<\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html lang&#061;&#034;en&#034;&gt;<br \/>\n&lt;head&gt;<br \/>\n    &lt;meta charset&#061;&#034;UTF-8&#034;&gt;<br \/>\n    &lt;title&gt;\u7528ajax\u5b9e\u73b0\u7701\u5e02\u8054\u52a8&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;!&#8211;\u5f15\u5165\u81ea\u5df1\u7f16\u5199\u7684jQuery\u5e93&#8211;&gt;<br \/>\n&lt;script type&#061;&#034;text\/javascript&#034; src&#061;&#034;\/ajax\/js\/jQuery-1.0.0.js&#034;&gt;&lt;\/script&gt;<br \/>\n&lt;!&#8211;&lt;script src&#061;&#034;https:\/\/code.jquery.com\/jquery-3.6.0.min.js&#034;&gt;&lt;\/script&gt;&#8211;&gt;<br \/>\n&lt;script type&#061;&#034;text\/javascript&#034;&gt;<br \/>\n$(function(){<br \/>\n    \/\/ \u53d1\u9001ajax\u8bf7\u6c42&#xff0c;\u83b7\u53d6\u6240\u6709\u7684\u7701\u4efd&#xff0c;\u7701\u4efd\u7684pcode\u662fnull<br \/>\n    $.ajax({<br \/>\n        type: &#034;get&#034;,<br \/>\n        url : &#034;\/ajax\/listArea&#034;,<br \/>\n        data : &#034;t&#061;&#034; &#043; new Date().getTime(),<br \/>\n        async : true,<br \/>\n        success:function(jsonArr){<br \/>\n            var html &#061; &#034;&lt;option value&#061;\\\\&#034;\\\\&#034;&gt;&#8211;\u8bf7\u9009\u62e9\u7701\u4efd&#8211;&lt;\/option&gt;&#034;;<br \/>\n            for (var i &#061; 0; i &lt; jsonArr.length; i&#043;&#043;) {<br \/>\n                var area &#061; jsonArr[i];<br \/>\n                html &#043;&#061; &#034;&lt;option value&#061;\\\\&#034;&#034;&#043;area.code&#043;&#034;\\\\&#034;&gt;&#034;&#043;area.name&#043;&#034;&lt;\/option&gt;&#034;<br \/>\n            }<br \/>\n            $(&#034;#province&#034;).html(html)<br \/>\n        }<br \/>\n    })<br \/>\n    \/\/ \u53ea\u8981change\u53d1\u751f&#xff0c;\u5c31\u53d1\u9001ajax\u8bf7\u6c42<br \/>\n    $(&#034;#province&#034;).change(function(){<br \/>\n        $.ajax({<br \/>\n            type: &#034;get&#034;,<br \/>\n            url : &#034;\/ajax\/listArea&#034;,<br \/>\n            data : &#034;t&#061;&#034; &#043; new Date().getTime()&#043; &#034;&amp;pcode&#061;&#034;&#043;this.value,<br \/>\n            async : true,<br \/>\n            success:function(jsonArr){<br \/>\n                var html &#061; &#034;&lt;option value&#061;\\\\&#034;\\\\&#034;&gt;&#8211;\u8bf7\u9009\u62e9\u5e02&#8211;&lt;\/option&gt;&#034;;<br \/>\n                for (var i &#061; 0; i &lt; jsonArr.length; i&#043;&#043;) {<br \/>\n                    var area &#061; jsonArr[i];<br \/>\n                    html &#043;&#061; &#034;&lt;option value&#061;\\\\&#034;&#034;&#043;area.code&#043;&#034;\\\\&#034;&gt;&#034;&#043;area.name&#043;&#034;&lt;\/option&gt;&#034;<br \/>\n                }<br \/>\n                $(&#034;#city&#034;).html(html)<br \/>\n            }<br \/>\n        })<br \/>\n    })<br \/>\n})<br \/>\n&lt;\/script&gt;<br \/>\n&lt;select id&#061;&#034;province&#034;&gt;&lt;\/select&gt;<br \/>\n&lt;select id&#061;&#034;city&#034;&gt;&lt;\/select&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt; <\/p>\n<p>&#xff08;3&#xff09;servlet\u6587\u4ef6&#xff08;\u540e\u7aef&#xff09;<\/p>\n<p>package com.bjpowernode.ajax.servlet;<\/p>\n<p>import com.alibaba.fastjson.JSON;<br \/>\nimport com.bjpowernode.ajax.bean.Area;<br \/>\nimport jakarta.servlet.ServletException;<br \/>\nimport jakarta.servlet.annotation.WebServlet;<br \/>\nimport jakarta.servlet.http.HttpServlet;<br \/>\nimport jakarta.servlet.http.HttpServletRequest;<br \/>\nimport jakarta.servlet.http.HttpServletResponse;<\/p>\n<p>import java.io.IOException;<br \/>\nimport java.sql.*;<br \/>\nimport java.util.ArrayList;<\/p>\n<p>\/**<br \/>\n * \u52a8\u6001\u83b7\u53d6\u6240\u6709\u7684\u7701\u4efd<br \/>\n *\/<br \/>\n&#064;WebServlet(&#034;\/listArea&#034;)<br \/>\npublic class ListAreaServlet extends HttpServlet {<br \/>\n    &#064;Override<br \/>\n    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br \/>\n        \/\/ \u8fde\u63a5\u6570\u636e\u5e93&#xff0c;\u83b7\u53d6\u6240\u6709\u7684\u5bf9\u5e94\u533a\u57df&#xff0c;\u6700\u7ec8\u54cd\u5e94\u4e00\u4e2aJSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u7ed9WEB\u524d\u7aef<br \/>\n        Connection conn &#061; null;<br \/>\n        PreparedStatement ps &#061; null;<br \/>\n        ResultSet rs&#061; null;<br \/>\n        ArrayList&lt;Area&gt; areas &#061; new ArrayList&lt;&gt;();<br \/>\n        String pcode &#061; request.getParameter(&#034;pcode&#034;);<br \/>\n        String sql;<br \/>\n        try {<br \/>\n            Class.forName(&#034;com.mysql.cj.jdbc.Driver&#034;);<br \/>\n            String url &#061; &#034;jdbc:mysql:\/\/localhost:3306\/bjpowernode?useUnicode&#061;true&amp;characterEncoding&#061;UTF-8&#034;;<br \/>\n            String user &#061; &#034;root&#034;;<br \/>\n            String password &#061; &#034;1234&#034;;<br \/>\n            conn &#061; DriverManager.getConnection(url,user,password);<br \/>\n            if (pcode &#061;&#061; null){<br \/>\n                sql &#061; &#034;select code,name from t_area where pcode is null&#034;;<br \/>\n                ps &#061; conn.prepareStatement(sql);<br \/>\n            }else{<br \/>\n                sql &#061; &#034;select code,name from t_area where pcode &#061; ?&#034;;<br \/>\n                ps &#061; conn.prepareStatement(sql);<br \/>\n                ps.setString(1,pcode);<br \/>\n            }<br \/>\n            rs &#061; ps.executeQuery();<br \/>\n            while (rs.next()) {<br \/>\n                String code &#061; rs.getString(&#034;code&#034;);<br \/>\n                String name &#061; rs.getString(&#034;name&#034;);<br \/>\n                Area area &#061; new Area(code, name);<br \/>\n                areas.add(area);<br \/>\n            }<br \/>\n        } catch (ClassNotFoundException e) {<br \/>\n            throw new RuntimeException(e);<br \/>\n        } catch (SQLException e) {<br \/>\n            throw new RuntimeException(e);<br \/>\n        } finally{<br \/>\n            if (rs !&#061; null) {<br \/>\n                try {<br \/>\n                    rs.close();<br \/>\n                } catch (SQLException e) {<br \/>\n                    throw new RuntimeException(e);<br \/>\n                }<br \/>\n            }<br \/>\n            if (ps !&#061; null) {<br \/>\n                try {<br \/>\n                    ps.close();<br \/>\n                } catch (SQLException e) {<br \/>\n                    throw new RuntimeException(e);<br \/>\n                }<br \/>\n            }<br \/>\n            if (conn !&#061; null) {<br \/>\n                try {<br \/>\n                    conn.close();<br \/>\n                } catch (SQLException e) {<br \/>\n                    throw new RuntimeException(e);<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n        response.setContentType(&#034;text\/html,charset&#061;UTF-8&#034;);<br \/>\n        String json &#061; JSON.toJSONString(areas);<br \/>\n        response.getWriter().print(json);<br \/>\n    }<\/p>\n<p>}<\/p>\n<p>5. \u5c55\u793a\u6548\u679c<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"424\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515142803-6825f9f348ecd.png\" width=\"742\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"331\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515142803-6825f9f363b89.png\" width=\"640\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb429\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf2\u6b21\u30021. \u7701\u5e02\u8054\u52a8\uff1a\u5728\u7f51\u9875\u4e0a\uff0c\u9009\u62e9\u5bf9\u5e94\u7684\u7701\u4efd\u4e4b\u540e\uff0c\u52a8\u6001\u7684\u5173\u8054\u51fa\u8be5\u7701\u4efd\u5bf9\u5e94\u7684\u5e02\u3002\u9009\u62e9\u5bf9\u5e94\u7684\u5e02\u4e4b\u540e\uff0c\u52a8\u6001\u5730\u5173\u8054\u51fa\u57ce\u5e02\u5bf9\u5e94\u7684\u533a\u30023. \u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u6a21\u62df\uff0c\u6240\u4ee5\u5efa\u7684\u6570\u636e\u5e93\u662f\u4e0d\u5b8c\u6574\u7684\uff0c\u60f3\u8981\u5b8c\u6574\u7684\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u53bb\u7f51\u4e0a\u627e\u3002\uff082\uff09html\u6587\u4ef6\uff08Ajax\u8bf7\u6c42\uff09\uff083\uff09servlet\u6587\u4ef6\uff08\u540e\u7aef\uff09\uff081\uff09\u81ea\u5199\u7684jQquery\u5e93\u3002<\/p>\n","protected":false},"author":2,"featured_media":37372,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3236,99,187,3237,87],"topic":[],"class_list":["post-37374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ajax","tag-java","tag-javascript","tag-jquery","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/37374.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb429\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf2\u6b21\u30021. \u7701\u5e02\u8054\u52a8\uff1a\u5728\u7f51\u9875\u4e0a\uff0c\u9009\u62e9\u5bf9\u5e94\u7684\u7701\u4efd\u4e4b\u540e\uff0c\u52a8\u6001\u7684\u5173\u8054\u51fa\u8be5\u7701\u4efd\u5bf9\u5e94\u7684\u5e02\u3002\u9009\u62e9\u5bf9\u5e94\u7684\u5e02\u4e4b\u540e\uff0c\u52a8\u6001\u5730\u5173\u8054\u51fa\u57ce\u5e02\u5bf9\u5e94\u7684\u533a\u30023. \u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u6a21\u62df\uff0c\u6240\u4ee5\u5efa\u7684\u6570\u636e\u5e93\u662f\u4e0d\u5b8c\u6574\u7684\uff0c\u60f3\u8981\u5b8c\u6574\u7684\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u53bb\u7f51\u4e0a\u627e\u3002\uff082\uff09html\u6587\u4ef6\uff08Ajax\u8bf7\u6c42\uff09\uff083\uff09servlet\u6587\u4ef6\uff08\u540e\u7aef\uff09\uff081\uff09\u81ea\u5199\u7684jQquery\u5e93\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/37374.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-15T14:28:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515142803-6825f9f348ecd.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37374.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/37374.html\",\"name\":\"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-15T14:28:04+00:00\",\"dateModified\":\"2025-05-15T14:28:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/37374.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/37374.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37374.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/37374.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb429\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf2\u6b21\u30021. \u7701\u5e02\u8054\u52a8\uff1a\u5728\u7f51\u9875\u4e0a\uff0c\u9009\u62e9\u5bf9\u5e94\u7684\u7701\u4efd\u4e4b\u540e\uff0c\u52a8\u6001\u7684\u5173\u8054\u51fa\u8be5\u7701\u4efd\u5bf9\u5e94\u7684\u5e02\u3002\u9009\u62e9\u5bf9\u5e94\u7684\u5e02\u4e4b\u540e\uff0c\u52a8\u6001\u5730\u5173\u8054\u51fa\u57ce\u5e02\u5bf9\u5e94\u7684\u533a\u30023. \u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u6a21\u62df\uff0c\u6240\u4ee5\u5efa\u7684\u6570\u636e\u5e93\u662f\u4e0d\u5b8c\u6574\u7684\uff0c\u60f3\u8981\u5b8c\u6574\u7684\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u53bb\u7f51\u4e0a\u627e\u3002\uff082\uff09html\u6587\u4ef6\uff08Ajax\u8bf7\u6c42\uff09\uff083\uff09servlet\u6587\u4ef6\uff08\u540e\u7aef\uff09\uff081\uff09\u81ea\u5199\u7684jQquery\u5e93\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/37374.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-15T14:28:04+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250515142803-6825f9f348ecd.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/37374.html","url":"https:\/\/www.wsisp.com\/helps\/37374.html","name":"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-15T14:28:04+00:00","dateModified":"2025-05-15T14:28:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/37374.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/37374.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/37374.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7528\u81ea\u5199\u7684jQuery\u5e93+Ajax\u5b9e\u73b0\u4e86\u7701\u5e02\u8054\u52a8"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=37374"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37374\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/37372"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=37374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=37374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=37374"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=37374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}