require引入是commonJS模块化的一种方式,import引入是ES6模块化的一种引入方式。 image.png 转载于https://blog.csdn.net/caseywei/article/details/90710749