zhaojs
2023-08-22 2f8a049b8d8405eb3ab58c3febde0bf4e927571b
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
}