global
global.testVar2 = 200;
在别的文件中可以任意调用到
因为global是全局变量相当于js的window一样的
posted on 2019-03-15 11:37 joer717 阅读(66) 评论(0) 编辑 收藏 举报