页面与页面之间url中文传值编码与解码方法解决
1.获取要传的信息
A.html页面,通过encodeURIComponent()方法进行编码
$.ajax({
type: 'POST',
url: baseLinkPath+'/Guest/login',
//contentType: 'application/html; charset=utf-8',//如果参数通过data: options传参,就去掉这行,不然后台接收不到参数
dataType: '...
原创
2021-03-19 13:58:59 ·
340 阅读 ·
0 评论