js export default;
时间: 2023-09-22 12:10:40 浏览: 98
exporting.js
export default是ES6中的一个语法,用于为模块指定默认输出。使用export default命令后,可以在导入该模块时不需要知道具体的变量名或函数名。而使用export命令则需要具体的变量名或函数名。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [js中 关于export default 和 export 区别](https://blog.csdn.net/qq_21436667/article/details/107062245)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [JavaScript ES6中export、import与export default的用法和区别](https://download.csdn.net/download/weixin_38696176/14815392)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文