jquery 的ajax post方式 传递多参数 如何用mootools ajax来实实现 20
jquery的ajax如下$.ajax({type:"post",dataType:"html",url:"index.aspx",data:{userName:user...
jquery 的ajax如下
$.ajax({
type: "post",
dataType: "html",
url: "index.aspx",
data: { userName: userName_text, userPass: userPass_text, },
async: false,
cache: false,
success: function (msg) {
if (msg == "false")
alert(msg);
else if (msg == "admin") {
alert(msg);
}
}
});
如何用mootools ajax来实实现 展开
$.ajax({
type: "post",
dataType: "html",
url: "index.aspx",
data: { userName: userName_text, userPass: userPass_text, },
async: false,
cache: false,
success: function (msg) {
if (msg == "false")
alert(msg);
else if (msg == "admin") {
alert(msg);
}
}
});
如何用mootools ajax来实实现 展开
1个回答
2015-11-26
展开全部
你ajax传递的是这样传:
$.post( "SendPropertyInfoAjax.action",
{"property.name":$("#pname").val().trim(),
"property.count":$("#count").val().trim(),
"place.name":":$("#place").val().trim()
}
);
$.post( "SendPropertyInfoAjax.action",
{"property.name":$("#pname").val().trim(),
"property.count":$("#count").val().trim(),
"place.name":":$("#place").val().trim()
}
);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询