// ?后
import querystring from 'querystring';
location.query = querystring.parse(location.search.replace('?', ''));
const { query } = location;
// ?前
url[0].split('?')[0]
// ?后
import querystring from 'querystring';
location.query = querystring.parse(location.search.replace('?', ''));
const { query } = location;
// ?前
url[0].split('?')[0]
本文标题:获取url?前后的内容
本文链接:https://www.haomeiwen.com/subject/xzmajqtx.html
网友评论