当前位置:网站首页>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()
边栏推荐
猜你喜欢
Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
Error correction notes for the book Image Processing, Analysis and Machine Vision
Passing parameters in multiple threads
Cloud Computing Basics - Study Notes
selenium学习
input详解之文件上传
NB-IOT智能云家具项目系列实站
ALC experiment
One-arm routing experiment and three-layer switch experiment
LeetCode practice and self-comprehension record (1)
随机推荐
格式化代码缩进的小技巧
Tips for formatting code indentation
LeetCode practice and self-comprehension record (1)
D39_Vector
Quick Start to Drools Rule Engine (1)
盒子模型小练习
The size of the screen adaptation
vscode notes
Configuration of routers and static routes
Next-Generation Parsing Technology - Cloud Parsing
The method of using ROS1 bag under ROS2
sql server duplicate values are counted after
DevOps流程demo(实操记录)
指针常量与常量指针 巧记
网络排错基础-学习笔记
【FAQ】CCAPI兼容EOS相机列表(2022年8月 更新)
Detailed explanation of ten solutions across domains (summary)
字体样式及其分类
VLAN is introduced with the experiment
盒子模型中过度约束问题及其解决办法