bee.js icon indicating copy to clipboard operation
bee.js copied to clipboard

能只支持模块化吗 requirejs

Open lilin87788 opened this issue 7 years ago • 2 comments

lilin87788 avatar Apr 02 '18 08:04 lilin87788

暂时不支持哈

shadowOfCode avatar Aug 24 '18 14:08 shadowOfCode

No description provided.

requirejs是支持加载非AMD规范的js文件的,需要配置下config。 /下面是requirejs的配置文件config.js/ require.config({ paths: { bee: 'xxx/beejs/bee' // 你的bee.js路径(结尾无.js) }, shim: { bee: { export: 'Bee' // 将paths中的bee导出为Bee } } });

/HTML页面使用/

zhaoxiaoran avatar May 16 '20 06:05 zhaoxiaoran