当前位置:网站首页>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()
边栏推荐
- The size of the screen adaptation
- [ingress]-ingress exposes services using tcp port
- Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
- Some basic method records of commonly used languages in LeetCode
- 【FAQ】什么是 Canon CCAPI
- cs231n learning record
- 【FAQ】What is Canon CCAPI
- Late night drinking, 50 classic SQL questions, really fragrant~
- ALC experiment
- Pytorch分布式并行处理
猜你喜欢
LeetCode practice and self-comprehension record (1)
VS Code私有服务器部署(私有化)
uniapp打包次数限制怎么办?只需两步就能解决
多用户商城多商户B2B2C拼团砍价秒杀支持小程序H5+APP全开源
深入分析若依数据权限@datascope (注解+AOP+动态sql拼接) 【循序渐进,附分析过程】
Get the network input dimensions of the pretrained model
LaTeX uses frame to make PPT pictures without labels
Met with the browser page
LeetCode刷题记录(2)
Tencent Internal Technology: Evolution of Server Architecture of "The Legend of Xuanyuan"
随机推荐
Nacos集群的搭建过程详解
input detailed file upload
格式化代码缩进的小技巧
BIO,NIO,AIO实践学习笔记(便于理解理论)
超简单的白鹭egret项目添加图片详细教程
亚马逊美国站:马术头盔CPC认证标准要求
Configuration of routers and static routes
One-arm routing experiment and three-layer switch experiment
input详解之文件上传
What is the website ICP record?
D39_Eulerian Angles and Quaternions
Dry!Teach you to use industrial raspberries pie combining CODESYS configuration EtherCAT master station
七夕!专属于程序员的浪漫表白
Next-Generation Parsing Technology - Cloud Parsing
ev加密视频转换成MP4格式,亲测可用
GetEnumerator method and MoveNext and Reset methods in Unity
js 使用雪花id生成随机id
document.querySelector()方法
七种让盒子水平垂直居中的方法
Get the network input dimensions of the pretrained model