< ;body>


1
0
0
零秒距离
零秒距离

全員に返信 (1)
Ty80

ajax_json.js

function ajax(){ try{ this.xmlHttp = new XMLHttpRequest(); }catch(e){ try{ this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ alert("your web explorer not support AJAX"); return false; } } } } ajax.prototype.doajax=function(){ var target,func,var_s,count,all_c,i,xmlHttp,appstr,obj; target=arguments[arguments.length-2]; func=arguments[arguments.length-1]; var_s=""; count=0; all_c=0; for(i=0;i=0){ str=str.replace(from,to); } return(str); }; function aolk(olkt){ return replaceall(replaceall(olkt,"#brn#","\n"),"#brr#","\r"); }

client: ファイル名demo.html

  

server: ファイル名test_json.php

$v) { if(ord($v[0]) < 128) $ar[$k] = rawurlencode($v); else $ar[$k] = "%u".bin2hex(iconv("GB2312","UCS-2",$v)); } return join("",$ar); } function unescape($str) { $str = rawurldecode($str); preg_match_all("/(?:%u.{4})|.+/",$str,$r); $ar = $r[0]; foreach($ar as $k=>$v) { if(substr($v,0,2) == "%u" && strlen($v) == 6) $ar[$k] = iconv("UCS-2","GB2312",pack("H4",substr($v,-4))); } return join("",$ar); } function olk($olkt){ return str_replace("#add#","+",str_replace("\r","#brr#",str_replace("\n","#brn#",str_replace('"','\"',$olkt)))); } $nm=unescape(stripslashes($_POST["nm"])); echo escape('{"linkman":"1111","password":[{"me":"'.olk($nm).'"},{"you":"hello"}]}');


いいねを押す+0
    人気のトピック
    詳細>
    人気の記事
    人気のチュートリアル
    詳細>
    最新のダウンロード
    詳細>
    ウェブエフェクト
    公式サイト
    サイト素材
    フロントエンドテンプレート
    私たちについて 免責事項 Sitemap
    PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!