You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
呓喵酱 e800665c6c
Update README.md
4 years ago
dist add md5 4 years ago
node_modules add tips 4 years ago
src add head and footer 5 years ago
LICENSE Initial commit 5 years ago
README.md Update README.md 4 years ago
compile.sh add md5 4 years ago
jquery.md5.js add md5 4 years ago
package-lock.json add tips 4 years ago
test.html v1.0.2 5 years ago
ushio-footer.js add md5 4 years ago
ushio-head.js add fp detail to page and add copyright 4 years ago
ushio-js.css add ajax session 5 years ago
ushio-js.mobile.css v1.0.2 5 years ago
ushio-js.tips.css add tips 4 years ago

README.md

Ushio-js

全局属性page

  • page.fp: 设备的fp
  • page.params: GET参数
  • page.fpKey: fp校验码
  • page.ip: 客户端ip地址
  • page.path: 页面路径
  • page.url: 页面带参路径
  • page.Timer: 页面已打开时长
  • page.openTime:打开页面的时间戳
  • page.title: 页面标题
  • page.host: 目标主机名
  • page.sid: 会话id
  • page.timezone: 时区
  • page.timezoneOffset: 时区校准参数
  • page.platform: 操作平台
  • page.userAgent: 用户代理
  • page.language: 客户端语言
  • page.copyright.full: 版权

Block参数

  • block_aplayer: 不加载aplayer
  • block_viewport: 不自动适配移动端
  • block_tips: 不加载Global Tips

Session方法

  • session.set(index, val): 设置session
  • session.get(index): 获取session
  • session.del(index): 删除session

tips方法

完全兼容izitoast

  • tips.show(params): 显示提示
  • tips.info(params): 显示信息
  • tips.success(params): 成功信息
  • tips.warning(params): 警告信息
  • tips.error(params): 错误信息
  • tips.question(params): 问题

jQuery

  • $.md5(): 支持md5扩展