前端模块化

1.模块化 Common JS规范

导入:require("")

导出:exports

2.模块化-ES6规范

导入:import  {} from  ' '

导出:export

export default {

getlist()
{},
save()
{}

}

 

posted @ 2021-01-26 10:58  创客未来  阅读(78)  评论(0)    收藏  举报