问题标签 [es6-modules]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
2107 问题
0
投票
1
回答
86
浏览
ecmascript-6 - 设置 ES6/ES2015 导入包的属性
我是 ES5 中 ES6 的新手,我能够设置任何需要(导入)包的属性,如下所示
在client
包中,我们能够访问 client.conn。像这样
现在在 ES6 中我正在尝试这样做
但我无法访问conn
变量。我怎样才能以正确的方式做到这一点。
0
投票
1
回答
367
浏览