类型系统基础
类型系统高阶
模块组织史与工程
前端平台类型
工程化与综合
17-pre-module-globals
17-pre-module-globals/04-script-vs-module/legacy/legacy.ts
typescript · 0.1 KB
运行:17 · script-vs-module
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
console
// 没有 import/export:在 moduleDetection legacy 下按脚本编译 var scriptGlobal = 'script'; globalThis.scriptGlobal = scriptGlobal;
该文件由构建期采集,未做任何改写;源码页不进入搜索引擎索引。