在nodejs官网上看到最新版的nodejs对于es6的语法支持已经足够好了,但是没看到import、export的支持。我们还是得用require、module.exports。既然es6已经对模块化有了规范。感觉前后端应该统一使用。那么nodejs未来会支持么?
巴扎黑2017-04-17 15:10:02
Personally, I think there is no problem in unifying language and standards
There are still differences in the usage scenarios of the front and back ends. Although they are both JS, they do not necessarily have to be unified
It is likely to be supported in the future
天蓬老师2017-04-17 15:10:02
Future support is for sure.
Upgrading a new feature often requires compatibility with older versions of the code.
If you need to use the latest features, it is recommended to use io.js