解决方法:
在Ajax中添加语句“ contentType: "application/x-www-form-urlencoded; charset=utf-8"”
具体操作如下:
- $.ajax({
- type : "POST",
- cache : false,/*不缓存数据*/
- url : _url,
- data : _data,
- contentType : "application/x-www-form-urlencoded; charset=utf-8",
- success : function(msg) {
- callback(msg);
- }
- });