找回密码
 立即注册

QQ登录

只需一步,快速开始

wcld

中级会员

50

主题

133

帖子

509

积分

中级会员

积分
509

微信认证勋章

wcld
中级会员   /  发表于:2020-2-6 12:59  /   查看:3121  /  回复:4
本帖最后由 Simon.hu 于 2020-2-27 17:44 编辑

XXX.XX.COM/AAA#[color=rgb(79, 79, 79) !important]%E5[color=rgb(79, 79, 79) !important]%BC[color=rgb(79, 79, 79) !important]%A0[color=rgb(79, 79, 79) !important]%E4[color=rgb(79, 79, 79) !important]%B8[color=rgb(79, 79, 79) !important]%89
[color=rgb(79, 79, 79) !important]

[color=rgb(79, 79, 79) !important]可以通过地址栏的一些参数获取,进行业务统计或者渠道信息采集
[color=rgb(79, 79, 79) !important]比如 www.qq.com/hzg#张三
[color=rgb(79, 79, 79) !important]

[color=rgb(79, 79, 79) !important]www.qq.com/hzg#[color=rgb(79, 79, 79) !important]%E5[color=rgb(79, 79, 79) !important]%BC[color=rgb(79, 79, 79) !important]%A0[color=rgb(79, 79, 79) !important]%E4[color=rgb(79, 79, 79) !important]%B8[color=rgb(79, 79, 79) !important]%89
[color=rgb(79, 79, 79) !important]

[color=rgb(79, 79, 79) !important]使用 JavaScript 命令 JavaScript encodeURI()


代码如下
  1. [hide]
  2. //获取地址栏内容
  3. var path=window.location.href;
  4. console.log(path);
  5. console.log(path.split("#")[1]);
  6. //decodeURI解码中文
  7. path= decodeURI(path)
  8. //填写修改活字格页面 path单元格内容
  9. Forguncy.Page.getCell("path").setValue(path.split("#")[1]);[/hide]
复制代码


评分

参与人数 1金币 +300 收起 理由
Simon.hu + 300 赞一个!

查看全部评分

4 个回复

倒序浏览
陈较授
注册会员   /  发表于:2020-2-16 20:04:59
沙发
辛辛苦苦灌水来的金币啊,
回复 使用道具 举报
djs521720讲师达人认证 悬赏达人认证 活字格认证
金牌服务用户   /  发表于:2020-2-20 08:51:33
板凳
学习下!
回复 使用道具 举报
zgwannabe
注册会员   /  发表于:2020-2-24 16:41:41
地板
金币啊,金币啊,
回复 使用道具 举报
Simon.hu讲师达人认证 悬赏达人认证 活字格认证
超级版主   /  发表于:2020-2-27 17:45:09
5#
给了您一些金币,然后给你吧权限去了哈~
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部