亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

pup輸入之后,顯示空白

pup輸入之后,顯示空白

PHP
寶慕林6116383 2019-06-21 12:56:17
<script>? ?? ? ? ?let obj = {? ? ? ? ? ?name:'Alice',? ? ? ? ? ?age:100,? ? ? ? ? ?sex:'man',? ? ? ? ? ?class:'1905'? ? ? ?}? ?? ? ? ?// 將對象轉換成字符串拼接的格式? ? ? ?function objtostring(obj) {? ? ? ? ? ?let arr=[];? ? ? ? ? ?for(let i in obj){? ? ? ? ? ? ? ?arr.push(i+'='+obj[i]);? ? ? ? ? ?}? ? ? ? ? ?return arr.join('&');? ? ? ?}? ? ? ?console.log(objtostring(obj));? ? ? ?? ? ? ?let request = new ?XMLHttpRequest();? ? ? ?request.open('get','http://10.31.158.12/day23/get.php?'+objtostring(obj),true);? ? ? ?request.send();? ? ? ?request.onreadystatechange = function(){? ? ? ? ? ?if(request.readyState==4){? ? ? ? ? ? ? ? ? ?if(request.status==200){? ? ? ? ? ? ? ? ? ?}? ? ? ? ? ? ? ? ? ?else {? ? ? ? ? ? ? ? ? ? ? ?throw new Error('接口地址有誤:'+request.status);? ? ? ? ? ? ? ? ? ?}? ? ? ? ? ?}? ? ? ?}? ?</script><?php// ?header('content-type:text/html;charset=utf-8');// error_reporting(0);echo $_GET["name"];?>
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 549 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號