$.ajax({ dataType : 'json',type : 'POST',url : 'http://localhost/test/test.do',data : {id: 1, type: '商品'},success : function(data){ } } ); 问题: 提交后后台action程序时,取到的type是乱码 解决方法: 方法一:提交前採用encodeURI两次编码,记住一定是两次 1.改动下面代码 data:{id:1, type:encodeURI(encodeUR…