ajax中ff下无错,ie6下中文乱码的解决方法
contentType:"application/x-www-form-urlencoded; charset=UTF-8",ajax中加入上面的代码,防止在IE6下传递的参数 出现中文乱码
例如:
$.ajax({type:"post",contentType:"application/x-www-form-urlencoded; charset=UTF-8",async: false,url:"/pm/scmt/scrCreateBaseLineAction.do?method=getPreviousBLCsciList",data:{baselineTypeMark:baselineTypeMark,baselineSN:baselineSN,projectId:projectId,id:id,isPbs:isPbs},success:function(msg){
其中的 :baselineSn 是中文字符串
页:
[1]