課程
/前端開(kāi)發(fā)
/jQuery
/jQuery基礎(chǔ)(五)一Ajax應(yīng)用與常用插件
$.get(url,[data],[callback])
這里的data可選參數(shù),在使用時(shí),未占位,為啥也能識(shí)別后面的回調(diào)函數(shù)?
2019-01-29
源自:jQuery基礎(chǔ)(五)一Ajax應(yīng)用與常用插件 1-4
正在回答
改成別的也行,例如
$.ajax({
type:'post',
url:"https://api.uxsw.cn/local/v1/user/student/login",
LoginName:'username='+ $('#username').val(),
PassWord:'password='+ $('#password').val(),
這里我就把data改成了LoginName
可選嘛
舉報(bào)
如何用jquery實(shí)現(xiàn)ajax應(yīng)用,加入學(xué)習(xí),有效提高前端開(kāi)發(fā)速度
2 回答關(guān)于data參數(shù)
1 回答$.param()可以用來(lái)傳中文參數(shù)嗎?
3 回答$.post()的data參數(shù)一定要寫成json格式嗎?
1 回答ajax函數(shù)的參數(shù)
2 回答函數(shù)參數(shù)問(wèn)題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2020-04-29
改成別的也行,例如
$.ajax({
type:'post',
url:"https://api.uxsw.cn/local/v1/user/student/login",
LoginName:'username='+ $('#username').val(),
PassWord:'password='+ $('#password').val(),
這里我就把data改成了LoginName
2019-02-22
可選嘛