ajax用get方法中文传值的转义方法

用encodeURIComponent();方法把中文转义一下再连到url地址中。服务器端无需反编码可直接取值。比escape方法好用。
原文地址:https://www.cnblogs.com/cly84920/p/4427054.html