javascript 从URL获取参数
发表于: 。javascript 从URL获取参数:比如获取url中的username查询参数: var url = new URL(window.location); var username = url.searchParams.get('username'); 参考: https://webdoc.p2hp.com/javascript/bom/location.html … The...
javascript 从URL获取参数:比如获取url中的username查询参数: var url = new URL(window.location); var username = url.searchParams.get('username'); 参考: https://webdoc.p2hp.com/javascript/bom/location.html … The...