From d059ca35f8c0edcc850a632680c05c201420d016 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期一, 24 七月 2023 17:07:34 +0800 Subject: [PATCH] no message --- h5/apph5/utils/ComUtils.js | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/h5/apph5/utils/ComUtils.js b/h5/apph5/utils/ComUtils.js index e69de29..0db476e 100644 --- a/h5/apph5/utils/ComUtils.js +++ b/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 +} \ No newline at end of file -- Gitblit v1.9.3