Ajax的get方式传值 避免& 与= 号 js代码 例如: var name = $("#name”).value;//为a&b=7 name=encodeURLComponent(name); 可以将a&b=7转化为a%26b%3D7,这样避免用户乱输入。