module.exports = {
__depends__: [
require('diagram-js/lib/features/copy-paste')
],
__init__: [ 'bpmnCopyPaste' ],
bpmnCopyPaste: [ 'type', require('./BpmnCopyPaste') ]
};
看一个开源项目,这么写的,其中 init 和 depends 这种写法是什么意思。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
就是一个属性,没什么特殊含义,这代码有可能是nodejs的也有可能是用了前端模块加载器的
那只是一个名字
举个例子:表示内部属性,开发的时候不会直接使用