当前位置:网站首页>export使用
export使用
2022-08-05 05:29:00 【weixin_43923808】
建一个test.js
function f1 (){
console.log("module - 1 : functino 1")
}
let b = {
name:"test_obj"
}
let str = "hell绿绿绿"
export {
f1,b,str
}使用
import * as m1 from "./test.js"
console.log(m1)结果:

如果要调用f1方法,
m1.f1()边栏推荐
猜你喜欢

VSCode编写OpenCV

numpy.random usage documentation

LeetCode练习及自己理解记录(1)

Dry!Teach you to use industrial raspberries pie combining CODESYS configuration EtherCAT master station

人人AI(吴恩达系列)

el-progress实现进度条颜色不同

白鹭egret添加新页面教程,如何添加新页面

BIO,NIO,AIO实践学习笔记(便于理解理论)

lingo入门——河北省第三届研究生建模竞赛B题

The cocos interview answers you are looking for are all here!
随机推荐
lingo入门——河北省第三届研究生建模竞赛B题
Pytorch分布式并行处理
scikit-image image processing notes
淘宝客APP带自营商城本地生活CPS外卖优惠电影票话费更新渠道跟单生活特权V3
【FAQ】CCAPI兼容EOS相机列表(2022年8月 更新)
What is the website ICP record?
自营商城提高用户留存小技巧,商城对接小游戏分享
Alibaba Cloud Video on Demand
Come, come, let you understand how Cocos Creator reads and writes JSON files
LeetCode刷题记录(2)
Seven Ways to Center a Box Horizontally and Vertically
Difference between link and @improt
如何将.asd恢复为Word文档
selenium学习
Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
wc, grep, tar, vi/vim
Nacos集群的搭建过程详解
document.querySelector() method
多行文本省略
js判断文字是否超过区域