当前位置:网站首页>export相关知识
export相关知识
2022-06-09 02:19:00 【阿斯卡码】
注意
export可以多个
export default只有一个
导出方法
1.逐个导出
export a=2
export f(){
console.log("@@@")}
export var=[1,2,3]
2.一起导出
let a=2
function f(){
console.log("@@@")}
let var=[1,2,3]
export {
a,f,var}
3.默认导出
export default fun(){
console.log("###")}
导入用法
//方法一
import {
a,f,var} from "....."
import fun from "....."
//方法二
import {
a,f,var},fun from "....."
边栏推荐
- C language campus supermarket management system
- Redis集群搭建
- C语言学生选修课查询系统
- 蓝桥杯_青蛙的约会_扩展欧几里得
- [high level knowledge] epoll implementation principle of user mode protocol stack
- frp 搭建
- Cve - 2022 - 30525 Replay of vulnerability
- SEC asset management - swebui open source application solution
- S系列·删除文件夹的几种姿势
- One month soft test | experience sharing of intermediate test for software designers (with learning materials)
猜你喜欢

How can golang set its own gopath and import the definition file normally

【Unity在Inspector面板修改值时销毁物体或组件】

Don't miss | quota management and application - bank credit card behavior scoring (see for practical operation)

接口测试系列——转转交易业务场景接口测试实践

Classify the audio and put it into the corresponding folder according to the file name

"The original, skillful and vulgar skills of cloud native" -- composition of Volume I of the national new college entrance examination in 2022

Integrated base process test summary

Basic principle of digital circuit adder (I)

27 | discussion on high water level and leader epoch

662. maximum width of binary tree -bfs
随机推荐
Golang of knowledge sharing -- a function based on whether a folder exists and whether a file exists
Cve - 2022 - 30525 Replay of vulnerability
编写循环何条件任务
Kubernetes scheduling framework extension point
马上消费:打击征信修复不遗余力,乱象根治呼唤社会合力
662. maximum width of binary tree -bfs
27 | discussion on high water level and leader epoch
Redis集群搭建
C language guessing numbers game
Redis集群报错cluster_state:fail,如何解决并重新恢复集群(IP问题/ slot未完全分配问题)
Mp4 structure
CVE-2020-3187
Sectigo证书价格
SEC asset management - swebui open source application solution
27 | 关于高水位和Leader Epoch的讨论
C language student native place information record book
蓝桥杯_丢番图方程
The high-end is weak. Can Yanghe still keep the third place in the industry?
About the left join, the left join finds more data than the original left table
PHP replicated vulnerability