{"id":1016,"date":"2009-12-11T14:19:00","date_gmt":"2009-12-11T06:19:00","guid":{"rendered":"\/?p=1016"},"modified":"2009-12-11T14:19:00","modified_gmt":"2009-12-11T14:19:00","slug":"1016","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/front-end\/1016.html","title":{"rendered":"AJAX\u63a8\u9001\u4e0e\u62c9\u53d6\u65b9\u5f0f\u7684\u6bd4\u8f83(\u53cd\u5411AJAX)"},"content":{"rendered":"

      \u5b9e\u65f6\u7684\u52a8\u6001\u6570\u636e\u6bd4\u5982\u65b0\u95fb\u6807\u9898\u3001\u8bc1\u5238\u62a5\u4ef7\u548c\u62cd\u5356\u884c\u60c5\u90fd\u9700\u8981\u5c3d\u5feb\u5730\u53d1\u9001\u7ed9\u7528\u6237\u3002\u7136\u800c\uff0cAJAX\u4ecd\u7136\u53d7\u9650\u4e8eweb\u8bf7\u6c42\/\u54cd\u5e94\u67b6\u6784\u7684\u5f31\u70b9\uff0c\u4f7f\u5f97\u670d\u52a1\u5668\u4e0d\u80fd\u63a8\u9001\u5b9e\u65f6\u52a8\u6001\u7684web\u6570\u636e\u3002            \u6b66\u6c49\u767e\u5ea6\u63a8\u5e7f<\/font><\/strong><\/a><\/p>\n

      Delft\u79d1\u6280\u5927\u5b66\u7684Engin Bozdag\u3001Ali Mesbah\u548cArie van Deursen\u4e00\u8d77\u8ba8\u8bba\u4e86\u4e0b\u9762\u8fd9\u4e9b\u53ef\u4ee5\u5b9e\u73b0\u57fa\u4e8eweb\u7684\u5b9e\u65f6\u4e8b\u4ef6\u901a\u77e5\u7684\u65b9\u6cd5\uff1a<\/p>\n

      1.HTTP\u62c9\u53d6\u65b9\u5f0f\uff1a<\/strong>\u5728\u8fd9\u79cd\u4f20\u7edf\u7684\u65b9\u6cd5\u4e2d\uff0c\u5ba2\u6237\u7aef\u4ee5\u7528\u6237\u53ef\u5b9a\u4e49\u7684\u65f6\u95f4\u95f4\u9694\u53bb\u68c0\u67e5\u670d\u52a1\u5668\u4e0a\u7684\u6700\u65b0\u6570\u636e\u3002\u8fd9\u79cd\u62c9\u53d6\u65b9\u5f0f\u7684\u9891\u7387\u8981\u8db3\u591f\u9ad8\u624d\u80fd\u4fdd\u8bc1\u5f88\u9ad8\u7684\u6570\u636e\u7cbe\u786e\u5ea6\uff0c\u4f46\u9ad8\u9891\u7387\u53ef\u80fd\u4f1a\u5bfc\u81f4\u591a\u4f59\u7684\u68c0\u67e5\uff0c\u4ece\u800c\u5bfc\u81f4\u8f83\u9ad8\u7684\u7f51\u7edc\u6d41\u91cf\u3002\u800c\u53e6\u4e00\u65b9\u9762\uff0c\u4f4e\u9891\u7387\u5219\u4f1a\u5bfc\u81f4\u9519\u8fc7\u66f4\u65b0\u7684\u6570\u636e\u3002\u7406\u60f3\u5730\uff0c\u62c9\u53d6\u7684\u65f6\u95f4\u95f4\u9694\u5e94\u8be5\u7b49\u4e8e\u670d\u52a1\u5668\u72b6\u6001\u6539\u53d8\u7684\u901f\u5ea6\u3002<\/p>\n

      2.HTTP\u6d41\uff1a<\/strong>\u8fd9\u79cd\u65b9\u6cd5\u7531\u5b58\u5728\u4e8e\u4e0d\u95f4\u65ad\u7684HTTP\u8fde\u63a5\u54cd\u5e94\u4e2d\u6216\u67d0\u4e2aXMLHttpRequest\u8fde\u63a5\u4e2d\u7684\u670d\u52a1\u5668\u6570\u636e\u6d41\u6240\u7ec4\u6210\u3002                                       \u6b66\u6c49\u767e\u5ea6\u516c\u53f8<\/font><\/strong><\/a><\/p>\n

      3.\u53cd\u8f6cAJAX\uff1a<\/strong>\u670d\u52a1\u6d41\u5e94\u7528\u5230AJAX\u63a8\u9001\uff0c\u5c31\u662f\u6240\u8c13\u7684\u53cd\u8f6cAJAX \u6216\u8005COMET \u3002\u5b83\u4f7f\u5f97\u670d\u52a1\u5668\u5728\u67d0\u4e8b\u4ef6\u53d1\u751f\u65f6\u53ef\u4ee5\u53d1\u9001\u6d88\u606f\u7ed9\u5ba2\u6237\u7aef\uff0c\u800c\u4e0d\u9700\u8981\u5ba2\u6237\u7aef\u663e\u5f0f\u7684\u8bf7\u6c42\u3002\u76ee\u6807\u5728\u4e8e\u8fbe\u5230\u72b6\u6001\u53d8\u5316\u7684\u5b9e\u65f6\u66f4\u65b0\u3002COMET\u4f7f\u7528\u4e86HTTP\/1.1\u4e2d\u7684\u6301\u7eed\u8fde\u63a5\u7684\u7279\u6027\u3002\u901a\u8fc7HTTP\/1.1\uff0c\u9664\u975e\u53e6\u4f5c\u8bf4\u660e\uff0c\u670d\u52a1\u5668\u548c\u6d4f\u89c8\u5668\u4e4b\u95f4\u7684TCP\u8fde\u63a5\u4f1a\u4e00\u76f4\u4fdd\u6301\u8fde\u63a5\u72b6\u6001\uff0c\u76f4\u5230\u5176\u4e2d\u4e00\u65b9\u53d1\u9001\u4e86\u4e00\u6761\u660e\u663e\u7684“\u5173\u95ed\u8fde\u63a5”\u7684\u6d88\u606f\uff0c\u6216\u8005\u6709\u8d85\u65f6\u4ee5\u53ca\u7f51\u7edc\u9519\u8bef\u53d1\u751f\u3002<\/p>\n

        4.\u957f\u65f6\u95f4\u8f6e\u8be2\uff1a<\/strong>\u4e5f\u5c31\u662f\u6240\u8c13\u7684\u5f02\u6b65\u8f6e\u8be2\uff0c\u8fd9\u79cd\u65b9\u5f0f\u662f\u7eaf\u670d\u52a1\u5668\u7aef\u63a8\u9001\u65b9\u5f0f\u548c\u5ba2\u6237\u7aef\u62c9\u53d6\u65b9\u5f0f\u7684\u6df7\u5408\u3002\u5b83\u662f\u57fa\u4e8eBAYEUX\u534f\u8bae\u7684\u3002\u8fd9\u4e2a\u534f\u8bae\u9075\u5faa\u57fa\u4e8e\u4e3b\u9898\u7684\u53d1\u5e03——\u8ba2\u9605\u673a\u5236\u3002\u5728\u8ba2\u9605\u4e86\u67d0\u4e2a\u9891\u9053\u540e\uff0c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u95f4\u7684\u8fde\u63a5\u4f1a\u4fdd\u6301\u6253\u5f00\u72b6\u6001\uff0c\u5e76\u4fdd\u6301\u4e00\u6bb5\u4e8b\u5148\u5b9a\u4e49\u597d\u7684\u65f6\u95f4\u3002\u5982\u679c\u670d\u52a1\u5668\u7aef\u6ca1\u6709\u4e8b\u4ef6\u53d1\u751f\uff0c\u800c\u53d1\u751f\u4e86\u8d85\u65f6\uff0c\u670d\u52a1\u5668\u7aef\u5c31\u4f1a\u8bf7\u6c42\u5ba2\u6237\u7aef\u8fdb\u884c\u5f02\u6b65\u91cd\u65b0\u8fde\u63a5\u3002\u5982\u679c\u6709\u4e8b\u4ef6\u53d1\u751f\uff0c\u670d\u52a1\u5668\u7aef\u4f1a\u53d1\u9001\u6570\u636e\u5230\u5ba2\u6237\u7aef\uff0c\u7136\u540e\u5ba2\u6237\u7aef\u91cd\u65b0\u8fde\u63a5\u3002<\/p>\n

\u5728\u4ed6\u4eec\u7684\u5b9e\u9a8c\u6027\u7814\u7a76\u4e2d\uff0c\u4f5c\u8005\u4eec\u5728\u4e00\u4e2a\u5229\u7528COMET\u63a8\u9001\u65b9\u5f0f\u5b9e\u73b0(Dojo\u7684Cometd\u5e93)\u7684AJAX\u63a8\u9001\u5e94\u7528\u548c\u4e00\u4e2a\u7eaf\u62c9\u53d6\u65b9\u5f0f\u7684\u5e94\u7528\u4e4b\u95f4\uff0c\u5bf9\u6570\u636e\u4e00\u81f4\u6027\u3001\u670d\u52a1\u5668\u6027\u80fd\u3001\u7f51\u7edc\u6027\u80fd\u4ee5\u53ca\u6570\u636e\u9057\u5931\u8fdb\u884c\u4e86\u6bd4\u8f83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      \u5b9e\u65f6\u7684\u52a8\u6001\u6570\u636e\u6bd4\u5982\u65b0\u95fb\u6807\u9898\u3001\u8bc1\u5238\u62a5\u4ef7\u548c\u62cd\u5356\u884c\u60c5\u90fd\u9700\u8981\u5c3d\u5feb\u5730\u53d1\u9001\u7ed9\u7528\u6237\u3002\u7136\u800c\uff0cAJAX\u4ecd\u7136\u53d7\u9650\u4e8eweb\u8bf7\u6c42\/\u54cd\u5e94\u67b6\u6784\u7684\u5f31\u70b9\uff0c\u4f7f\u5f97\u670d\u52a1\u5668\u4e0d\u80fd\u63a8\u9001\u5b9e\u65f6\u52a8\u6001\u7684web\u6570\u636e\u3002            \u6b66\u6c49\u767e\u5ea6\u63a8\u5e7f<\/font><\/strong><\/a><\/p>\n

      Delft\u79d1\u6280\u5927\u5b66\u7684Engin Bozdag\u3001Ali Mesbah\u548cArie van Deursen\u4e00\u8d77\u8ba8\u8bba\u4e86<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1016"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1016"}],"version-history":[{"count":0,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1016\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}