JavaScript(ES6)——文件引用时报错:import declarations may only appear at top level of a module 原网址:https://blog.csdn.net/Hello_ChenLiYan/article/details/107235716 有志者,事竟成,破釜沉舟,百二秦关终属楚; 苦心人,天不负,卧薪尝胆,三千越甲可吞吴。