ResourceParser.js 229 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 'use strict'; export function GetQueryString(url,name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = url.substr(url.indexOf("\?")+1).match(reg); if(r!=null)return unescape(r[2]); return null; }