function query(name) { const reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); const r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } function item (arr) { var html = ""; arr.forEach((v, i) => { html += `
  • ${v.title} ${v.total}套

    ${v.title}

    ${v.user}

    ${ v.source.length > 5 ? '' :`${v.source}`}

    ${(v.tags.map((item,index)=>{ return ` ` })).toString().replace(/,/g,"")}
  • ` }) return html; }