这个用jq $ajax如何吧文本框内的文字传给后台并保存显示
functionwx_getdate(){$.ajax({type:"POST",url:"../../../api_wss/WX/mvpp_v1508/WX_P_SAV...
function wx_getdate() {
$.ajax({
type: "POST",
url: "../../../api_wss/WX/mvpp_v1508/WX_P_SAV_VipInformation.aspx?d=" + (new Date()),
async: false,
data: { MovePhone: movephone, Wxopenid: wxopenid, Wxunionid: wxunionid, Wxappid: wxappid, UserName: userName, NickName: nickname, Xueli: education, BirthDay: birthday, Age: age, Cnstar: cnstar, TelPhone: telPhone, Address: address, likecolor: likeColor, LikeClothesType: likeclothestype, vlike: vLike, Zhiye: zhiye, plcclientkey: plcclientkey, plcsysaotkey: "", plcrettype: "json", plctimestamp: (new Date()).valueOf(), plcfromsysmsg: "", plcmhnmsg: plcmhnmsg, plcusermsg: plcusermsg, plcr1: plcr1, plcr2: plcr2 },
beforeSend: function () { },
complete: function () { },
success: function (val) {
var json = eval("[" + val + "]");
if (json[0]["Ret_flag"] == "1") {
}
}
});
} 展开
$.ajax({
type: "POST",
url: "../../../api_wss/WX/mvpp_v1508/WX_P_SAV_VipInformation.aspx?d=" + (new Date()),
async: false,
data: { MovePhone: movephone, Wxopenid: wxopenid, Wxunionid: wxunionid, Wxappid: wxappid, UserName: userName, NickName: nickname, Xueli: education, BirthDay: birthday, Age: age, Cnstar: cnstar, TelPhone: telPhone, Address: address, likecolor: likeColor, LikeClothesType: likeclothestype, vlike: vLike, Zhiye: zhiye, plcclientkey: plcclientkey, plcsysaotkey: "", plcrettype: "json", plctimestamp: (new Date()).valueOf(), plcfromsysmsg: "", plcmhnmsg: plcmhnmsg, plcusermsg: plcusermsg, plcr1: plcr1, plcr2: plcr2 },
beforeSend: function () { },
complete: function () { },
success: function (val) {
var json = eval("[" + val + "]");
if (json[0]["Ret_flag"] == "1") {
}
}
});
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询