各位看官,我在使用require的时候遇到了问题,报错为:Uncaught Error: Module name "fs" has not been loaded yet for context: _. Use require([]) http://requirejs.org/docs/errors.html#notloaded 希望各位能帮我解答一下困惑,谢谢。var deps = ["underscore","/viz.js"];require( deps, function(mvc, _) {drawGraph();});function drawGraph(){var g = "digraph G { a1 -> b3; b2 -> a3; a3 -> a0; }";var tt=Viz(g,"svg");}
- 3 回答
- 0 关注
- 951 浏览
添加回答
举报
0/150
提交
取消