第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

jq的ajax傳值問(wèn)題?

jq的ajax傳值問(wèn)題?

qq_伊璐_0 2017-09-28 20:50:13
使用post傳值到a.html,注冊(cè)提交后瀏覽器返回200,get,url=http://localhost:8080/?name=haha&pwd=123,ajax的成功和錯(cuò)誤都沒(méi)有執(zhí)行,按鈕點(diǎn)擊那步執(zhí)行了,ajax里面不知道出了什么問(wèn)題?,求大神們解惑。<div class="loginBox" id="register_Box"> ????<form method="">????????<input type="text" name="name" placeholder="用戶名">????????<input type="password" name="pwd" placeholder="密碼"> ????????<button>注冊(cè)</button> ????</form> </div>$register_Box.find('button').on('click',function(){ ????$.ajax({???????? type:"post",???????? url:"a.html",???????? dataType:"json",???????? data:{???????? ???? username:$register_Box.find('[name="name"]').val(),???????????? pwd:$register_Box.find('[name="pwd"]').val()???????? },? ????????????? success:function(result){???????????? console.log(result);???????? },???????? error:function(e){???????? ???? console.log(e);???????? }?????}); })
查看完整描述

2 回答

?
qq_伊璐_0

TA貢獻(xiàn)2條經(jīng)驗(yàn) 獲得超13個(gè)贊

打錯(cuò)了a.php,是個(gè)不存在的文件

查看完整回答
反對(duì) 回復(fù) 2017-09-28
?
橋本奈奈未

TA貢獻(xiàn)436條經(jīng)驗(yàn) 獲得超108個(gè)贊

提交到html是什么鬼?還有這種操作?

查看完整回答
反對(duì) 回復(fù) 2017-09-28
  • 2 回答
  • 0 關(guān)注
  • 2056 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)