{"id":755,"date":"2025-01-05T22:30:19","date_gmt":"2025-01-05T14:30:19","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=755"},"modified":"2025-01-05T22:30:19","modified_gmt":"2025-01-05T14:30:19","slug":"%e5%ae%a2%e6%88%b7%e7%ab%af-javascript-%e5%92%8c%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%ab%af-php-%e6%98%af%e5%a6%82%e4%bd%95%e4%ba%a4%e4%ba%92%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/05\/%e5%ae%a2%e6%88%b7%e7%ab%af-javascript-%e5%92%8c%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%ab%af-php-%e6%98%af%e5%a6%82%e4%bd%95%e4%ba%a4%e4%ba%92%e7%9a%84%ef%bc%9f\/","title":{"rendered":"\u5ba2\u6237\u7aef JavaScript \u548c\u670d\u52a1\u5668\u7aef PHP \u662f\u5982\u4f55\u4ea4\u4e92\u7684\uff1f"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5728 Web \u5f00\u53d1\u4e2d\uff0c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\u901a\u5e38\u901a\u8fc7 HTTP \u8bf7\u6c42\u548c\u54cd\u5e94\u8fdb\u884c\u4ea4\u4e92\u3002JavaScript \u4f5c\u4e3a\u5ba2\u6237\u7aef\u811a\u672c\u8bed\u8a00\uff0cPHP \u4f5c\u4e3a\u670d\u52a1\u5668\u7aef\u811a\u672c\u8bed\u8a00\uff0c\u5b83\u4eec\u901a\u8fc7 AJAX\u3001\u8868\u5355\u63d0\u4ea4\u3001URL \u53c2\u6570\u7b49\u65b9\u5f0f\u6765\u4e92\u76f8\u901a\u4fe1\u3002\u8fd9\u79cd\u4ea4\u4e92\u4f7f\u5f97\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u80fd\u591f\u5728\u4e0d\u91cd\u65b0\u52a0\u8f7d\u9875\u9762\u7684\u60c5\u51b5\u4e0b\u4ea4\u6362\u6570\u636e\uff0c\u63d0\u4f9b\u52a8\u6001\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u5ba2\u6237\u7aef JavaScript \u548c\u670d\u52a1\u5668\u7aef PHP \u5982\u4f55\u4ea4\u4e92\u7684\u51e0\u79cd\u5e38\u89c1\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u4f7f\u7528 AJAX\uff08Asynchronous JavaScript and XML\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AJAX \u662f\u4e00\u79cd\u6280\u672f\uff0c\u5141\u8bb8\u7f51\u9875\u5728\u4e0d\u91cd\u65b0\u52a0\u8f7d\u6574\u4e2a\u9875\u9762\u7684\u60c5\u51b5\u4e0b\u4e0e\u670d\u52a1\u5668\u4ea4\u6362\u6570\u636e\u3002AJAX \u5728\u5ba2\u6237\u7aef\uff08\u901a\u5e38\u662f JavaScript\uff09\u4e0e\u670d\u52a1\u5668\u7aef\uff08PHP\uff09\u4e4b\u95f4\u5b9e\u73b0\u5f02\u6b65\u901a\u4fe1\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u4f7f\u7528 AJAX \u5411 PHP \u53d1\u9001\u8bf7\u6c42\u5e76\u63a5\u6536\u54cd\u5e94<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">HTML + JavaScript\uff08\u5ba2\u6237\u7aef\u4ee3\u7801\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;AJAX Example&lt;\/title&gt;\n    &lt;script&gt;\n        \/\/ JavaScript \u51fd\u6570\uff0c\u4f7f\u7528 AJAX \u5411 PHP \u53d1\u9001\u8bf7\u6c42\n        function sendRequest() {\n            \/\/ \u521b\u5efa XMLHttpRequest \u5bf9\u8c61\n            var xhr = new XMLHttpRequest();\n            var name = document.getElementById(\"name\").value;\n\n            \/\/ \u8bbe\u7f6e\u8bf7\u6c42\u7c7b\u578b\u548c URL\n            xhr.open(\"GET\", \"server.php?name=\" + name, true);\n\n            \/\/ \u8bbe\u7f6e\u56de\u8c03\u51fd\u6570\uff0c\u63a5\u6536\u54cd\u5e94\n            xhr.onreadystatechange = function() {\n                if (xhr.readyState == 4 &amp;&amp; xhr.status == 200) {\n                    \/\/ \u663e\u793a\u4ece\u670d\u52a1\u5668\u7aef\u8fd4\u56de\u7684\u6570\u636e\n                    document.getElementById(\"response\").innerHTML = xhr.responseText;\n                }\n            };\n\n            \/\/ \u53d1\u9001\u8bf7\u6c42\n            xhr.send();\n        }\n    &lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h2&gt;AJAX Example with JavaScript and PHP&lt;\/h2&gt;\n    &lt;label for=\"name\"&gt;Enter your name:&lt;\/label&gt;\n    &lt;input type=\"text\" id=\"name\"&gt;\n    &lt;button onclick=\"sendRequest()\"&gt;Send Request&lt;\/button&gt;\n\n    &lt;div id=\"response\"&gt;&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">PHP\uff08\u670d\u52a1\u5668\u7aef\u4ee3\u7801\uff1a<code>server.php<\/code>\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ \u83b7\u53d6\u5ba2\u6237\u7aef\u4f20\u6765\u7684\u6570\u636e\nif (isset($_GET&#91;'name'])) {\n    $name = htmlspecialchars($_GET&#91;'name']);\n    echo \"Hello, \" . $name . \"! This is the response from the server.\";\n}\n?&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u91ca\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JavaScript\uff08\u5ba2\u6237\u7aef\uff09<\/strong>\uff1a\u901a\u8fc7 <code>XMLHttpRequest<\/code> \u521b\u5efa\u4e00\u4e2a\u5f02\u6b65\u8bf7\u6c42\uff0c\u5c06\u7528\u6237\u8f93\u5165\u7684\u59d3\u540d\u4f5c\u4e3a\u67e5\u8be2\u53c2\u6570\u53d1\u9001\u5230\u670d\u52a1\u5668\u7aef\u7684 <code>server.php<\/code> \u6587\u4ef6\u3002<\/li>\n\n\n\n<li><strong>PHP\uff08\u670d\u52a1\u5668\u7aef\uff09<\/strong>\uff1a\u63a5\u6536 <code>name<\/code> \u53c2\u6570\uff0c\u5904\u7406\u540e\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u7528\u6237\u8f93\u5165\u7684\u6b22\u8fce\u6d88\u606f\u7684\u54cd\u5e94\u3002<\/li>\n\n\n\n<li><strong>\u4ea4\u4e92<\/strong>\uff1a\u5f53\u7528\u6237\u70b9\u51fb\u6309\u94ae\u65f6\uff0cAJAX \u53d1\u9001\u8bf7\u6c42\u5230 <code>server.php<\/code>\uff0c\u5e76\u5728\u4e0d\u5237\u65b0\u9875\u9762\u7684\u60c5\u51b5\u4e0b\u663e\u793a\u54cd\u5e94\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\">2. \u4f7f\u7528 Fetch API\uff08\u66ff\u4ee3 XMLHttpRequest\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Fetch API<\/code> \u662f\u73b0\u4ee3 JavaScript \u63d0\u4f9b\u7684\u4e00\u4e2a\u65b0\u7684\u5f02\u6b65 HTTP \u8bf7\u6c42\u65b9\u5f0f\uff0c\u8bed\u6cd5\u66f4\u7b80\u6d01\u4e14\u652f\u6301 Promise\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u4f7f\u7528 Fetch API \u5411 PHP \u53d1\u9001\u8bf7\u6c42\u5e76\u63a5\u6536\u54cd\u5e94<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">HTML + JavaScript\uff08\u5ba2\u6237\u7aef\u4ee3\u7801\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;Fetch API Example&lt;\/title&gt;\n    &lt;script&gt;\n        \/\/ \u4f7f\u7528 Fetch API \u53d1\u9001\u8bf7\u6c42\n        function sendRequest() {\n            var name = document.getElementById(\"name\").value;\n\n            fetch(\"server.php?name=\" + name)\n                .then(response =&gt; response.text())  \/\/ \u89e3\u6790\u670d\u52a1\u5668\u54cd\u5e94\u4e3a\u6587\u672c\n                .then(data =&gt; {\n                    \/\/ \u663e\u793a\u4ece\u670d\u52a1\u5668\u7aef\u8fd4\u56de\u7684\u6570\u636e\n                    document.getElementById(\"response\").innerHTML = data;\n                })\n                .catch(error =&gt; console.error(\"Error:\", error));\n        }\n    &lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h2&gt;Fetch API Example with JavaScript and PHP&lt;\/h2&gt;\n    &lt;label for=\"name\"&gt;Enter your name:&lt;\/label&gt;\n    &lt;input type=\"text\" id=\"name\"&gt;\n    &lt;button onclick=\"sendRequest()\"&gt;Send Request&lt;\/button&gt;\n\n    &lt;div id=\"response\"&gt;&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">PHP\uff08\u670d\u52a1\u5668\u7aef\u4ee3\u7801\uff1a<code>server.php<\/code>\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nif (isset($_GET&#91;'name'])) {\n    $name = htmlspecialchars($_GET&#91;'name']);\n    echo \"Hello, \" . $name . \"! This is the response from the server using Fetch API.\";\n}\n?&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u91ca\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JavaScript\uff08\u5ba2\u6237\u7aef\uff09<\/strong>\uff1a<code>fetch<\/code> API \u53d1\u9001 GET \u8bf7\u6c42\uff0c\u5e76\u89e3\u6790\u54cd\u5e94\u3002<\/li>\n\n\n\n<li><strong>PHP\uff08\u670d\u52a1\u5668\u7aef\uff09<\/strong>\uff1a\u4e0e\u4e4b\u524d\u7684\u4f8b\u5b50\u76f8\u540c\uff0c\u8fd4\u56de\u4e00\u4e2a\u6b22\u8fce\u6d88\u606f\u3002<\/li>\n\n\n\n<li><strong>\u4ea4\u4e92<\/strong>\uff1a\u4e0e AJAX \u793a\u4f8b\u76f8\u4f3c\uff0c\u4f46\u8fd9\u91cc\u4f7f\u7528\u4e86\u73b0\u4ee3\u7684 <code>fetch<\/code> API \u8bed\u6cd5\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\">3. \u8868\u5355\u63d0\u4ea4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4f20\u7edf\u7684 Web \u5e94\u7528\u4e2d\uff0c\u8868\u5355\u63d0\u4ea4\u662f\u4e0e\u670d\u52a1\u5668\u7aef\u4ea4\u4e92\u7684\u5e38\u7528\u65b9\u5f0f\u3002\u901a\u8fc7 <code>POST<\/code> \u6216 <code>GET<\/code> \u65b9\u6cd5\u63d0\u4ea4\u6570\u636e\uff0cPHP \u5904\u7406\u5e76\u8fd4\u56de\u54cd\u5e94\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u4f7f\u7528\u8868\u5355\u63d0\u4ea4\u6570\u636e<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">HTML + JavaScript\uff08\u5ba2\u6237\u7aef\u4ee3\u7801\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;Form Submit Example&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h2&gt;Form Submit Example with PHP&lt;\/h2&gt;\n    &lt;form action=\"server.php\" method=\"POST\"&gt;\n        &lt;label for=\"name\"&gt;Enter your name:&lt;\/label&gt;\n        &lt;input type=\"text\" id=\"name\" name=\"name\"&gt;\n        &lt;button type=\"submit\"&gt;Submit&lt;\/button&gt;\n    &lt;\/form&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">PHP\uff08\u670d\u52a1\u5668\u7aef\u4ee3\u7801\uff1a<code>server.php<\/code>\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ \u68c0\u67e5\u8868\u5355\u6570\u636e\u5e76\u663e\u793a\u8fd4\u56de\u7684\u6d88\u606f\nif (isset($_POST&#91;'name'])) {\n    $name = htmlspecialchars($_POST&#91;'name']);\n    echo \"Hello, \" . $name . \"! This is a response after form submission.\";\n}\n?&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u91ca\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTML\uff08\u5ba2\u6237\u7aef\uff09<\/strong>\uff1a\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684 HTML \u8868\u5355\u63d0\u4ea4\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>PHP\uff08\u670d\u52a1\u5668\u7aef\uff09<\/strong>\uff1a\u4f7f\u7528 <code>$_POST<\/code> \u83b7\u53d6\u6570\u636e\u5e76\u8fd4\u56de\u4e00\u4e2a\u54cd\u5e94\u3002<\/li>\n\n\n\n<li><strong>\u4ea4\u4e92<\/strong>\uff1a\u7528\u6237\u63d0\u4ea4\u8868\u5355\uff0c\u9875\u9762\u4f1a\u88ab\u91cd\u65b0\u52a0\u8f7d\uff0cPHP \u8fd4\u56de\u54cd\u5e94\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\">4. \u4f7f\u7528 Cookies \u6216 LocalStorage<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u4e86\u5e38\u89c4\u7684\u8bf7\u6c42\u548c\u54cd\u5e94\u65b9\u5f0f\uff0c\u5ba2\u6237\u7aef JavaScript \u548c\u670d\u52a1\u5668\u7aef PHP \u8fd8\u53ef\u4ee5\u901a\u8fc7 <strong>Cookies<\/strong> \u6216 <strong>LocalStorage<\/strong> \u4f20\u9012\u6570\u636e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528 Cookie \u793a\u4f8b\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">JavaScript\uff08\u5ba2\u6237\u7aef\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u8bbe\u7f6e Cookie\ndocument.cookie = \"username=JohnDoe; expires=Thu, 18 Dec 2025 12:00:00 UTC; path=\/\";<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">PHP\uff08\u670d\u52a1\u5668\u7aef\uff09<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ \u83b7\u53d6 Cookie \u6570\u636e\nif (isset($_COOKIE&#91;'username'])) {\n    echo \"Hello, \" . $_COOKIE&#91;'username'];\n}\n?&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u91ca\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5ba2\u6237\u7aef<\/strong>\uff1a\u901a\u8fc7 JavaScript \u8bbe\u7f6e Cookie\u3002<\/li>\n\n\n\n<li><strong>\u670d\u52a1\u5668\u7aef<\/strong>\uff1aPHP \u901a\u8fc7 <code>$_COOKIE<\/code> \u8bfb\u53d6\u5e76\u8fd4\u56de Cookie \u7684\u503c\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\">5. \u4f7f\u7528 WebSockets\uff08\u5b9e\u65f6\u901a\u4fe1\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u5b9e\u65f6\u4e92\u52a8\uff08\u5982\u804a\u5929\u5e94\u7528\u3001\u6e38\u620f\u7b49\uff09\uff0c\u5ba2\u6237\u7aef JavaScript \u548c\u670d\u52a1\u5668\u7aef PHP \u53ef\u4ee5\u901a\u8fc7 WebSockets \u5b9e\u73b0\u53cc\u5411\u901a\u4fe1\u3002WebSockets \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6301\u4e45\u7684\u8fde\u63a5\uff0c\u5141\u8bb8\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5728\u9700\u8981\u65f6\u76f8\u4e92\u53d1\u9001\u6570\u636e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u793a\u4f8b\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 PHP \u7684 <a href=\"http:\/\/socketo.me\/\">Ratchet<\/a> \u5e93\u548c JavaScript \u4e2d\u7684 <code>WebSocket<\/code> API \u5b9e\u73b0\u5b9e\u65f6\u6570\u636e\u4ea4\u6362\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<p class=\"wp-block-paragraph\">\u5ba2\u6237\u7aef JavaScript \u548c\u670d\u52a1\u5668\u7aef PHP \u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\u4ea4\u4e92\uff0c\u4ee5\u4e0b\u662f\u5e38\u89c1\u7684\u4ea4\u4e92\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>AJAX<\/strong>\uff1a\u901a\u8fc7 JavaScript \u52a8\u6001\u52a0\u8f7d\u548c\u53d1\u9001\u6570\u636e\u5230 PHP \u670d\u52a1\u5668\uff0c\u65e0\u9700\u5237\u65b0\u9875\u9762\u3002<\/li>\n\n\n\n<li><strong>Fetch API<\/strong>\uff1a\u4e00\u79cd\u73b0\u4ee3\u7684\u5f02\u6b65\u8bf7\u6c42\u65b9\u5f0f\uff0c\u76f8\u6bd4\u4e8e <code>XMLHttpRequest<\/code> \u66f4\u7b80\u6d01\u548c\u7075\u6d3b\u3002<\/li>\n\n\n\n<li><strong>\u8868\u5355\u63d0\u4ea4<\/strong>\uff1a\u4f20\u7edf\u7684 HTTP \u8bf7\u6c42\u65b9\u5f0f\uff0c\u901a\u8fc7 <code>POST<\/code> \u6216 <code>GET<\/code> \u65b9\u6cd5\u5c06\u6570\u636e\u53d1\u9001\u5230 PHP\u3002<\/li>\n\n\n\n<li><strong>Cookies \u548c LocalStorage<\/strong>\uff1a\u53ef\u4ee5\u5728\u5ba2\u6237\u7aef\u5b58\u50a8\u6570\u636e\uff0c\u5e76\u901a\u8fc7 Cookie \u6216 LocalStorage \u4e0e\u670d\u52a1\u5668\u4ea4\u4e92\u3002<\/li>\n\n\n\n<li><strong>WebSockets<\/strong>\uff1a\u9002\u7528\u4e8e\u5b9e\u65f6\u5e94\u7528\uff0c\u652f\u6301\u53cc\u5411\u901a\u4fe1\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bcf\u79cd\u65b9\u5f0f\u7684\u4f7f\u7528\u573a\u666f\u4e0d\u540c\uff0c\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6280\u672f\u6765\u5b9e\u73b0\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u7aef\u7684\u4ea4\u4e92\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Web \u5f00\u53d1\u4e2d\uff0c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\u901a\u5e38\u901a\u8fc7 HTTP \u8bf7\u6c42\u548c\u54cd\u5e94\u8fdb\u884c\u4ea4\u4e92\u3002JavaScript \u4f5c\u4e3a\u5ba2\u6237\u7aef\u811a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-755","post","type-post","status-publish","format-standard","hentry","category-php-"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/755","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=755"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/755\/revisions"}],"predecessor-version":[{"id":756,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/755\/revisions\/756"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}