欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 家装 > 前端项目中export和import的作用

前端项目中export和import的作用

2025/3/11 5:12:17 来源:https://blog.csdn.net/zlpzlpzyd/article/details/146125018  浏览:    关键词:前端项目中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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词