// 获取路由参数
let router = {}
window.location.search.substr(1).split('&').forEach(item => {
let arr = item.split('=')
router[arr[0]] = arr[1]
})
let queryDom = (test) => test.map(i => document.querySelector('.' + i))
let test = 'hexiao,hexiao-ipt,submit,centerBox'.split(',')
let res = queryDom(test)
// 'hexiao,hexiao-ipt,submit,centerBox' 传递参数字符串类型 逗号隔开