yingwo

hysdk代码解析

1. navigator.userAgent  浏览器的用户代理字符串
2. navigator.platform 浏览器所在的系统平台

window

1.  window.devicePixelRatio  设备上物理像素和设备独立像素(device-independent pixels (dips))的比例。

公式表示就是:window.devicePixelRatio = 物理像素 / dips

document

1. document.readyState  
2. DOMContentLoaded 页面文档完全加载并解析完毕之后,会触发DOMContentLoaded事件,HTML文档不会等待样式文件,图片文件,子框架页面的加载(load事件可以用来检测HTML页面是否完全加载完毕(fully-loaded))

1. call()  
    hasOwn.call(obj, \'constructor\')
2. [object Array] ,\'[object Object]\'
3. isPrototypeOf 

other

  • ua 匹配中的 ipad ipod (桌面webApp)
  • ua (android) 和 browser (wechat、支付宝、QQ浏览器等)
  • iOS 8+ changed UA

es6ify

(...args) =>{ console.log(...args);} 会报错

分类:

技术点:

相关文章:

  • 2021-07-07
  • 2022-12-23
  • 2022-01-18
  • 2021-09-11
  • 2022-01-11
  • 2021-06-10
  • 2022-03-09
  • 2021-10-01
猜你喜欢
  • 2021-11-25
  • 2021-12-22
  • 2022-02-11
  • 2021-07-07
  • 2021-07-31
  • 2021-12-08
  • 2021-08-08
相关资源
相似解决方案