摘要:
期望输出 获取到所有的 query 参数,组成一个对象。 const url = 'http://domain.com/?user=anonymous&city=chengdu' parseParam(url) 结果: { user:'liujiaqi', city: 'yichang' } 解题分 阅读全文
摘要:
var str = 'i like code and writing code makes me feel charming'; var array = str.split(" ").reduce((prev, next) => (prev[next]++ || (prev[next] = 1), 阅读全文