
这么看好像是没问题.
你不如使用客户端的BUTTON.试试:
<input type=button value="打开窗口" onclick="javascript:window.open('Default2.aspx')">
$("#myform").submit(function () {$.ajax({
url: "/tools/shopus.ashx?action=Register",
//请求的url地址
data: $('#myform').serialize(),
type: "POST",
//请求方式
async: true,//这个地方修改
success: function (data) {
alert(data)
window.location.href = "/ShopUser/Index"
},
error: function (req) {
alert(req)
}
})
return false//这个位置加一个返回失败
})
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)