摘要:
// 数组var trees = new Array("redwood", "bay", "cedar", "oak", "maple");1 in trees // 返回true3 in trees // 返回true6 in trees // 返回false"bay" in trees // 返 阅读全文
摘要:
思路: 1.先对url进行处理,获取 ?后的字符串 2. 字符串通过&标识,不同参数转为数组 3.分别将 = 左右两边拆分为数组, 动态变为键值对 阅读全文