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

前置++和后置++的区别

docker部署完mysql无法连接

Complete mysql offline installation in 5 minutes

input详解之文件上传

Detailed explanation of the construction process of Nacos cluster

The future of cloud gaming

自营商城提高用户留存小技巧,商城对接小游戏分享

格式化代码缩进的小技巧

Transformer interprets and predicts instance records in detail

After docker is deployed, mysql cannot connect
随机推荐
Writing OpenCV in VSCode
VLAN is introduced with the experiment
reduce()方法的学习和整理
Matplotlib plotting notes
Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
农场游戏果园系统+牧场养殖系统+广告联盟模式流量主游戏小程序APP V1
Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive
In-depth analysis if according to data authority @datascope (annotation + AOP + dynamic sql splicing) [step by step, with analysis process]
Nacos配置服务的源码解析(全)
自营商城提高用户留存小技巧,商城对接小游戏分享
VS Code私有服务器部署(私有化)
[ingress]-ingress exposes services using tcp port
Vim tutorial: vimtutor
transport layer protocol
Come, come, let you understand how Cocos Creator reads and writes JSON files
文本样式这一篇文章就够了
Configuration of routers and static routes
config.js related configuration summary
盒子模型大详解
The cocos interview answers you are looking for are all here!