前端项目中export和import的作用

之前写过代码,但是那个时候是使用jsp+div+css写页面,jquery负责页面数据展示和数据请求。近期在学习前端,发现有export和import,想起了之前没用过,就研究搜索了一下,发现这个是在 ES6中添加的,难怪之前学习js的时候没见过。

翻看了一下ecma官网介绍,发现ES6是在2015年推出的,从推出这个规范到各家浏览器厂商支持,再到市场上实际应用,一般需要3年左右的时间。ecma制定了一个浏览器端运行代码的规范(发号施令),编号为262。对应的实现有如下

javascript,在浏览器端的实现。

actionscript,不过这个现在已经不怎么用了。

这些浏览器实现是实际干活的。

node.js 也是运行javascript的,不过是在服务器端运行的,即可以用javascript写后台逻辑。

https://ecma-international.org/publications-and-standards/standards/ecma-262/

1st edition, June 1997

2nd edition, August 1998

3rd edition, December 1999

4th edition (not existing)

5th edition, December 2009

5.1th edition, June 2011

6th edition, June 2015

7th edition, June 2016

8th edition, June 2017

9th edition, June 2018

10th edition, June 2019

11th edition, June 2020

12th edition, June 2021

13th edition, June 2022

14th edition, June 2023

从官网提供的内容可以得知,从ES5开始,几乎每年发布一个版本。

参考文档

https://blog.csdn.net/weixin_65793170/article/details/136476532

相关推荐
放下华子我只抽RuiKe521 小时前
React 从入门到生产(三):副作用与数据获取
前端·javascript·深度学习·react.js·开源·ecmascript·集成学习
微祎_1 天前
写给前端的 CANN-ops-transformer:昇腾Transformer进阶算子库到底是啥?
前端·深度学习·transformer
Cobyte1 天前
12.响应式系统演进:揭秘多级脏检查机制的设计哲学与实现原理(Vue3.4)
前端·javascript·vue.js
前端若水1 天前
技术选型:React 19 + TypeScript + TailwindCSS
前端·react.js·typescript
木斯佳1 天前
前端八股文面经大全:携程前端暑期实习一面(2026-05-14)·面经深度解析
前端
卸任1 天前
为Tiptap富文本编辑器增加导出PDF功能
前端·react.js
ZC跨境爬虫1 天前
跟着 MDN 学CSS day_1:(CSS 基石与色彩的艺术)
前端·javascript·css·ui·html
NiceCloud喜云1 天前
Claude API 流式输出(SSE)实战:从打字机效果到工具调用全流程
java·前端·ide·人工智能·chrome·intellij-idea·状态模式
青春喂了后端1 天前
IntelliGit 前端入口与开发测试面板边界重构
前端·重构
广州灵眸科技有限公司1 天前
瑞芯微(EASY EAI)RV1126B 千兆以太网电路
服务器·前端·人工智能·python·深度学习