const url="/BaseDictionary?Type=34";
const arr=url.split('?');
// arr=["/BaseDictionary","Type=34"];
typeStr = parse(arr[1]);
// typeStr={Type: "34"}
将url参数字符串转成数组
最新推荐文章于 2022-10-28 17:09:01 发布
const url="/BaseDictionary?Type=34";
const arr=url.split('?');
// arr=["/BaseDictionary","Type=34"];
typeStr = parse(arr[1]);
// typeStr={Type: "34"}