如何调用ajax

$.ajax({
url : ‘/app_saleapi/customerController/insertCustomer’,
type :‘post’,
async:true,
data:{
customerType:1,
userType : userType,
realName : realName,
contactingPerson : contactingPerson,
contactingDuties : contactingDuties,
contactingTelephone : contactingTelephone,
companyName : companyName,
creatUser : creatUser,
stationName : stationName,
province : province,
city : city,
counties : counties,
country : country,
village : village
},
dataType:‘json’,
success:function(result){
get_model(‘big-customer’);
},
error: function(){
alert(“error”);
}
});

猜你喜欢

转载自blog.csdn.net/u014788505/article/details/90176523
今日推荐