1 Star 0 Fork 0

坡坡/4102-project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
a.js 467 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangpo 提交于 2024-06-15 15:33 +08:00 . 初始化提交
console.log("这是a.js");
let a = 10;
console.log(a);
// 1.先定义 在导出 ,注意 导出的时候需要加上大括号;
function fn(){
console.log("这是a.js的fn方法");
}
// export 导出了fn方法
export {fn}
export function fn2(){
console.log("这是a.js的fn2方法");
}
// export 导出 可以导出多个值 ;
export class Person{
constructor(name,age){
this.age = age
this.name = name
}
}
export default fn
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/wp772593/4102-project.git
git@gitee.com:wp772593/4102-project.git
wp772593
4102-project
4102-project
master

搜索帮助