问什么进不去ajax啊,第一个alert(url)可以弹出,但是里面的那两个就弹不出来了啊,代码如下:
function SaveSendAddress() { var flag = ValidAddress(); if (flag == false) return; var orderID = jQuery('#hd_orderID').val(); var addressID = jQuery("#hd_address1ID").val(); var contactName = jQuery("#tb_sendContactname").val(); var address1 = jQuery("#tb_sendAddress1").val(); var address2 = jQuery("#tb_sendAddress2").val(); var city = jQuery("#tb_sendCity").val(); var province = jQuery("#tb_sendProvince").val(); var countryID = jQuery("#tb_sendCountryID").val(); var code = jQuery("#tb_sendCode").val(); var phone = jQuery("#tb_sendPhone").val(); var url = '/do3.html?type=edituseraddress1&orderID=' + orderID + '&addressID=' + addressID + '&contactName=' + escape(contactName) + '&address1=' + escape(address1) + '&address2=' + escape(address2) + '&city=' + escape(city) + '&province=' + escape(province) + '&countryID=' + countryID + '&code=' + escape(code) + '&phone=' + escape(phone); alert(url); jQuery.ajax( { url: url, async: true, success: function(data) { alert(data); alert(url); if (data == "ok") { window.location = window.location; } else { alert('Operation failed'); } } });
添加回答
举报
0/150
提交
取消