ajax里data数据有多个变量组成要怎么写
varxinlang=document.getElementById("xinlang").value;varxinniang=document.getElementBy...
var xinlang = document.getElementById("xinlang").value;
var xinniang = document.getElementById("xinniang").value;
var marry_date = document.getElementById("marry_date").value;
var marry_time = document.getElementById("marry_time").value;
var address = document.getElementById("address").value;
var detail_address = document.getElementById("detail_address").value;
var tel = document.getElementById("tel").value;
$.ajax({
url:'mobile_info.php',
data:'xinlang='xinlang;
//&"xinniang="xinniang&"marry_date="marry_date&"marry_time="marry_time&"address="address&"detail_address="detail_address &"tel="tel,
type:'post',
dataType:'text',
success:function(re){
$("#con").html(re);
}
// timeout:'2000',
// cache:false
})
怎么在data里把这些变量与值链接一块? 展开
var xinniang = document.getElementById("xinniang").value;
var marry_date = document.getElementById("marry_date").value;
var marry_time = document.getElementById("marry_time").value;
var address = document.getElementById("address").value;
var detail_address = document.getElementById("detail_address").value;
var tel = document.getElementById("tel").value;
$.ajax({
url:'mobile_info.php',
data:'xinlang='xinlang;
//&"xinniang="xinniang&"marry_date="marry_date&"marry_time="marry_time&"address="address&"detail_address="detail_address &"tel="tel,
type:'post',
dataType:'text',
success:function(re){
$("#con").html(re);
}
// timeout:'2000',
// cache:false
})
怎么在data里把这些变量与值链接一块? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询