From 6bf09b5ad960fd4e657c132f9e451c487aa4d9c7 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期三, 02 八月 2023 10:00:31 +0800 Subject: [PATCH] Merge branch 'feature/v1.1.5接口补充2' into develop --- 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