当前位置:网站首页>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()边栏推荐
猜你喜欢

盒子模型大详解

DisabledDate date picker datePicker

Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive

NACOS配置中心设置配置文件

Linux中安装Redis教程

Configuration of routers and static routes

VLAN is introduced with the experiment

Transformer详细解读与预测实例记录

Email management Filter emails

selenium learning
随机推荐
May I ask how to read the binlog of the two tables of hologres through flink sql, and then how to join?
What is Alibaba Cloud Express Beauty Station?
盒子模型大详解
【FAQ】CCAPI兼容EOS相机列表(2022年8月 更新)
input详解之文件上传
Dry!Teach you to use industrial raspberries pie combining CODESYS configuration EtherCAT master station
字体样式及其分类
长度以及颜色单位基本概念
单片机期末复习大题
文本样式这一篇文章就够了
Cocos Creator Mini Game Case "Stick Soldier"
农场游戏果园系统+牧场养殖系统+广告联盟模式流量主游戏小程序APP V1
VRRP overview and experiment
D45_Camera assembly Camera
Media query, rem mobile terminal adaptation
Vim tutorial: vimtutor
The future of cloud gaming
七夕!专属于程序员的浪漫表白
sql server duplicate values are counted after
System basics - study notes (some command records)