import { jsFile } from '../about/ex1.js';
constructor() {
jsFile(); // Method
}
我在控制台error console img中有错误
-- In ex1.js --
export function isFile() {
// Code
}
-- In AboutComponent --
import { jsFile } from '../about/ex1.js';
constructor() {
jsFile(); // Method
}
尝试导出isFile
。