摘要: $.ajax({ url: '../test.ashx?value='+$('#txt1').val(), type: 'POST', contentType: 'application/x-www-form-urlencoded; charset=utf-8', success: function (msg) { }});以前这么写是好用的,但是不知道什么原因传到一般处理程序中还是乱码。后来网上查了一些资料,用escape与unescape方法,就能解决问题也就是把$('#txt1').val() 换成 esca 阅读全文
posted @ 2012-04-24 10:28 chenfan31 阅读(403) 评论(0) 推荐(0) 编辑