function check(){
$value=$("#inputEmail").val();
$typeId=$("#typeId").val();
$.ajax({
type:"POST",
url:"<?php echo $baseUrl."/index.php/lottery/checkValue/"?>",
data:"tid="+$typeId+"&value="+$value,
success:function(msg){
console.log(msg);
if(msg=="false"){
var ff="false";
$("#warnInfo").show();
}else{
$(".form-horizontal").submit();
}
}
});
}
Jquery的Ajax方式
JqueryAjax简单示例
最新推荐文章于 2021-08-06 16:18:21 发布