課程
/后端開發(fā)
/Java
/SpringBoot構(gòu)建電商基礎(chǔ)秒殺項目
請問getotp的html有源碼嗎
2021-01-15
源自:SpringBoot構(gòu)建電商基礎(chǔ)秒殺項目 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>手機號</label>
? ? ? ? ? ? <div>
? ? ? ? ? ? <input type="text" placeholder="手機號" 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("手機號不能為空");
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ā)送到了您的手機上,請注意查收");
} else {
alert("otp發(fā)送失敗,原因為"+data.data.errMsg);
error:function(data){
alert("otp發(fā)送失敗,原因為" + data.responseText);
});
? ? });
</script>
</html>
某寶9塊錢
幕布斯2371478
舉報
應(yīng)用SpringBoot快速搭建擁有用戶、商品、交易及秒殺活動的電商秒殺應(yīng)用。
1 回答有源碼嗎?
1 回答請問下源碼的地址
1 回答請問java code有源代碼可以下載么
1 回答請問源代碼哪里下載?
1 回答有沒有源代碼
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
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>手機號</label>
? ? ? ? ? ? <div>
? ? ? ? ? ? <input type="text" placeholder="手機號" 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("手機號不能為空");
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ā)送到了您的手機上,請注意查收");
} else {
alert("otp發(fā)送失敗,原因為"+data.data.errMsg);
}
},
error:function(data){
alert("otp發(fā)送失敗,原因為" + data.responseText);
}
});
return false;
});
? ? });
</script>
</html>
2021-03-20
某寶9塊錢