Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引用系统的模块如 os, std 会报错 #88

Open
zyc945 opened this issue Dec 2, 2024 · 1 comment
Open

引用系统的模块如 os, std 会报错 #88

zyc945 opened this issue Dec 2, 2024 · 1 comment

Comments

@zyc945
Copy link

zyc945 commented Dec 2, 2024

您好, 如题, 引用系统的 module, 如 os,
`// const os = require('os');
import * as os from "os";

function main() {

console.log('程序开始');

console.log('暂停 2 秒');
os.sleep(2);

console.log('暂停 1 秒');
os.sleep(1);

console.log('程序结束');

}

main();`

会报错

@HarlonWang
Copy link
Owner

这部分是平台扩展的能力,Android 里没有集成这部分能力

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants