課程
/后端開發(fā)
/Java
/SpringBoot構(gòu)建電商基礎(chǔ)秒殺項(xiàng)目
請(qǐng)問getotp的html有源碼嗎
2021-01-15
源自:SpringBoot構(gòu)建電商基礎(chǔ)秒殺項(xiàng)目 3-8
正在回答
<html>
<head>
<meta charset="utf-8" />
<script src="static/assets/global/plugins/jquery-1.11.0.min.js" type="text/javascript"></script>
</head>
<body>
<div>
? ? <h3>獲取otp信息</h3>
? ? <div>
? ? ? ? <label>手機(jī)號(hào)</label>
? ? ? ? ? ? <div>
? ? ? ? ? ? <input type="text" placeholder="手機(jī)號(hào)" name="telphone" id="telphone" />
? ? ? ? ? ? </div>
? ? ? ? </div>
? ? ? ? <div>
? ? ? ? <button id="getotp" type="submit">
? ? ? ? ? ? 獲取otp短信
? ? ? ? ? ? </button>
? ? </div>
</body>
<script>
jQuery(document).ready(function() {
? ? ? ? $("#getotp").on("click",function(){
var telphone = $("#telphone").val();
if(telphone == null || telphone == ""){
alert("手機(jī)號(hào)不能為空");
return false;
}
$.ajax({
type:"POST",
contentType:"application/x-www-form-urlencoded",
url:"http://localhost:8080/user/getotp",
data:{
"telphone":$("#telphone").val(),
},
success:function(data){
if(data.status == "success") {
alert("otp已經(jīng)發(fā)送到了您的手機(jī)上,請(qǐng)注意查收");
} else {
alert("otp發(fā)送失敗,原因?yàn)?+data.data.errMsg);
error:function(data){
alert("otp發(fā)送失敗,原因?yàn)? + data.responseText);
});
? ? });
</script>
</html>
某寶9塊錢
幕布斯2371478
舉報(bào)
應(yīng)用SpringBoot快速搭建擁有用戶、商品、交易及秒殺活動(dòng)的電商秒殺應(yīng)用。
1 回答有源碼嗎?
1 回答請(qǐng)問下源碼的地址
1 回答請(qǐng)問java code有源代碼可以下載么
1 回答請(qǐng)問源代碼哪里下載?
1 回答有沒有源代碼
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2021-05-17
<html>
<head>
<meta charset="utf-8" />
<script src="static/assets/global/plugins/jquery-1.11.0.min.js" type="text/javascript"></script>
</head>
<body>
<div>
? ? <h3>獲取otp信息</h3>
? ? <div>
? ? ? ? <label>手機(jī)號(hào)</label>
? ? ? ? ? ? <div>
? ? ? ? ? ? <input type="text" placeholder="手機(jī)號(hào)" name="telphone" id="telphone" />
? ? ? ? ? ? </div>
? ? ? ? </div>
? ? ? ? <div>
? ? ? ? <button id="getotp" type="submit">
? ? ? ? ? ? 獲取otp短信
? ? ? ? ? ? </button>
? ? </div>
? ? </div>
</body>
<script>
jQuery(document).ready(function() {
? ? ? ? $("#getotp").on("click",function(){
var telphone = $("#telphone").val();
if(telphone == null || telphone == ""){
alert("手機(jī)號(hào)不能為空");
return false;
}
$.ajax({
type:"POST",
contentType:"application/x-www-form-urlencoded",
url:"http://localhost:8080/user/getotp",
data:{
"telphone":$("#telphone").val(),
},
success:function(data){
if(data.status == "success") {
alert("otp已經(jīng)發(fā)送到了您的手機(jī)上,請(qǐng)注意查收");
} else {
alert("otp發(fā)送失敗,原因?yàn)?+data.data.errMsg);
}
},
error:function(data){
alert("otp發(fā)送失敗,原因?yàn)? + data.responseText);
}
});
return false;
});
? ? });
</script>
</html>
2021-03-20
某寶9塊錢