在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
---恢复内容开始--- /// reference 原文: https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html The Triple-slash references instruct the compiler to include additional files in the compilation process. They also serve as a method to order the output when using
log.ts function logMsg(){ console.log('logMsg'); } main.ts ///<reference path="./log.ts" /> logMsg(); 编译出来的结果:out.js的内容为 function logMsg() { console.log('logMsg'); } ///<reference path="./log.ts" /> logMsg();
---恢复内容结束--- |
请发表评论