zoukankan      html  css  js  c++  java
  • fingerprintjs 唯一标识码 npm全局安装

    fingerprintjs 其他安装方法 https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200

      
    npm i @fingerprintjs/fingerprintjs
    # or
    yarn add @fingerprintjs/fingerprintjs
    

      

    // 引入已安装好的fingerprintjs
    import FingerprintJS from '@fingerprintjs/fingerprintjs';
    
    (async () => {
      // We recommend to call `load` at application startup.
      const fp = await FingerprintJS.load();
    
      // The FingerprintJS agent is ready.
      // Get a visitor identifier when you'd like to.
      const result = await fp.get();
    
      // This is the visitor identifier:
      const visitorId = result.visitorId;
      console.log(visitorId);
    })(); 

    示例(uni-App):

     

  • 相关阅读:
    lightoj-1050
    lightoj-1305
    lightoj-1354
    lightoj-1433
    lightoj-1227
    lightoj-1189
    lightoj-1182
    lightoj-1011
    lightoj-1009
    lightoj-1023
  • 原文地址:https://www.cnblogs.com/wasbg/p/13968308.html
Copyright © 2011-2022 走看看