jsp传中文乱码问题 encodeURIComponent()编码方法
时间:2014-06-14 20:58:07
收藏:0
阅读:333
jQuery.ajax({
type:"POST",
url:"${ctx}/offer.do",
data:{
‘method‘:‘isNameExist‘,
‘type‘:‘area‘,
‘id‘:id==""?null:id,
‘name‘:encodeURIComponent(offerAreaName)
},
async:false,
success:function (data) {
bool = data;
}
});
评论(0)