题解 | #参数解析器#
参数解析器
https://www.nowcoder.com/practice/9a4cca8c0779438a8be39d45d0370597
const _getParams = (url) => {
return {[url.match(/.*?([a-z]*)=/)[1]]:url.match(/.*=(\S*)&/)[1],
[url.match(/.*&(\S*)=/)[1]]:url.match(/.*&.*=(\d*)/)[1]};
}
参数解析器
https://www.nowcoder.com/practice/9a4cca8c0779438a8be39d45d0370597
const _getParams = (url) => {
return {[url.match(/.*?([a-z]*)=/)[1]]:url.match(/.*=(\S*)&/)[1],
[url.match(/.*&(\S*)=/)[1]]:url.match(/.*&.*=(\d*)/)[1]};
}
相关推荐
沉淀小子:干啥都不丢人啊,生存是必须要的,销售很考验一个人综合素质能力的,好的销售人脉和资源可不比写字楼的白领差啊