全部 / 前端 / 技术 · 2022年1月25日 0

gojs 学习

仅供学习交流,勿用到生产环境。

1.商业协议:
https://gojs.net/latest/license.html

2.下载页面:
https://gojs.net/latest/download.html

  1. unpkg
  2. jsdelivr
  3. npm

多版本:

  • go.js
  • go-debug.js
  • go-module.js / go-debug-module.js
  • go.mjs / go-debug.mjs

3.去除水印

去除前:

搜索关键词:String.fromCharCode(a.charCodeAt(g) ^ b[(b[c] + b[d]) % 256]))

添加如下代码:

if(f.indexOf('GoJS 2.1 evaluation')>-1  
    || f.indexOf('(c) 1998-2021 Northwoods Software')>-1
    || f.indexOf('Not for distribution or production use')>-1
    || f.indexOf('gojs.net')>-1
    ){
        return '';
    }else{
         return f
    }

去除后: