我有以下目录结构:
/Admin/Grid
abc.ts // this file contains the one function abc()
xxx.ts // this file contains the one function xxx()
/Admin/Dialog
abc.ts // this file contains the one function abc()
我将所有三个 javascript 都加载到我的浏览器中。
函数 xxx() 如下所示:
function xxx() {
// do abc
abc();
}
有没有一种使用打字稿的方法,我可以告诉函数 xxx 执行 /Admin/Dialog 目录中文件内的函数 abc?