如果以前没用见过 escape() 方法,它用于转义不能用明文正确发送的任何字符。比如,电话号码中的空格将被转换成字符 %20,从而能够在 URL 中传递这些字符。
escape()
%20
var url = "/cgi-local/lookupCustomer.php?phone=" + escape(phone);
定义一般变量用var
数组要加new Array()
var a
var b=new Array()
b=a.split(",")
Powered by: 博客园 Copyright © 2024 hateyoucode Powered by .NET 9.0 on Kubernetes