我前台获取到一个字符串 111111#\n22222
在后台获取的时候 #和#号后面的都没有了。。
用的是location.href="xx.html?xxx="+encodeURI(encodeURI(xxx));
但是传 类似 111111.*.*\n22222 后台获取正常。。。
1,#是特殊字符,使用location.href="xx.html?xxx="+encodeURI(encodeURI(xxx));会被截断
2,使用encodeURIComponent可以避免
http://blog.csdn.net/zhang515745112/article/details/52400749