因此,在一个名为shapes.js的脚本中,我有两个用于形状的类 class Shape {
this.x = x;this.t = t;} 如何在我的server.js或其他js文件中同时导入这两个文件?我尝试过以下几种方式: var shape = require('/shapes');
var Shape = shape.Shape, C
:50:23) at Object.eval (http://localhost:8080/node_modules/can-reflect/reflections/shape/shape.js:701:23) at String.eval (http://localhost:8080/node_modules/can-reflect/reflections/shape/