1、在地址栏中传递参数时,对于包含特殊字符的处理:
使用encodeURIComponent()对参数值进行编码处理就可以了。
转载于:https://www.cnblogs.com/lfzwenzhu/articles/1288128.html