getFragment() 函数返回 URL 参数中的片段。
n = URL.getFragment(url)
var a = URL.getFragment("http://eruiyi.cn/wml#read"); var b = URL.getFragment("http://eruiyi.cn/wml");
a = "read" b = ""
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注
发表评论 取消回复