getPort() 函数返回 URL 中的查询部分。
n = URL.getQuery(url)
var a=URL.getQuery("http://example.com/go.asp?name=bill"); var b=URL.getQuery("http://example.com");
a = "bill" b = ""
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注
发表评论 取消回复