h5/apph5/utils/ComUtils.js
对比新文件 @@ -0,0 +1,10 @@ function getUrlPar(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } module.exports = { getUrlPar }