import() 在注入的主脚本中


🌐 import() in the injected main script

在使用 "mainFormat": "module" 时,可以使用 import() 来动态加载内置模块。尝试使用 import() 从文件系统加载模块会抛出错误。

🌐 When using "mainFormat": "module", import() can be used to dynamically load built-in modules. Attempting to use import() to load modules from the file system will throw an error.