获取url特定参数(=后面的数据)

decodeURI(location.href).slice(decodeURI(location.href).indexOf("=")+1)
//太长

decodeURI(location.href.split("=")[1])
//nice

猜你喜欢

转载自blog.csdn.net/qq_42099419/article/details/85100681