- 注册时间
- 2012-11-28
- 最后登录
- 2012-12-26
- 阅读权限
- 10
- 积分
- 75
- 精华
- 0
- 帖子
- 20
|
请问为何我这样传中文参数后,后台 得到的参数是乱码?
<input name="Name" id="Name" class="mini-textbox" emptytext="物品名称" vtype="maxLength:90" style="width: 100px;" />
var name = mini.get("Name").value;
$.ajax({
url: "GoodsPurchaseBus.aspx?method=NameCount&Name=" + name,
cache: false,
success: function (text) {
var o = mini.decode(text);
if (o.Column1 != null) {
mini.get("GoodsPurchaseNumber").setValue(o.Column1);
}
else mini.get("GoodsPurchaseNumber").setValue(0);
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.responseText);
CloseWindow();
}
});
}
|
|