【问题标题】:Can we use GoJS library offline in Javascript?我们可以在 Javascript 中离线使用 GoJS 库吗?
【发布时间】:2020-09-24 19:57:35
【问题描述】:

可以离线下载GOJS库并在JS脚本中使用吗? 我尝试下载该库并将其用作以下代码,但它不起作用

<html>
<head>
  <!-- use go-debug.js when developing and go.js when deploying -->
  <script src="go-debug.js"></script>
  . . .
      

【问题讨论】:

  • “不工作”不是问题陈述。请阅读How to ask
  • 查看下载部分https://gojs.net/latest/download.html

标签: javascript offline diagram gojs


【解决方案1】:

是的,无论是在浏览器中(作为文件运行时显示的任何示例),还是在 Node.js 环境中。

https://gojs.net/latest/samples/index.html

https://gojs.net/latest/intro/nodeScript.html

如果要在没有任何路径的情况下引用它,请确保库文件位于同一文件夹中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-04-14
    • 2017-04-15
    • 2021-06-19
    • 2010-10-09
    • 1970-01-01
    • 2015-04-18
    • 1970-01-01
    相关资源
    最近更新 更多