ResourceParser.js 229 Bytes
'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;
}