mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update the file
This commit is contained in:
parent
b4a5f19807
commit
3062a2bf1e
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,7 +24,6 @@ compile_commands.json
|
||||
*.aps
|
||||
libs
|
||||
bin
|
||||
scripts
|
||||
xapps/xprivate
|
||||
.DS_Store
|
||||
./xprivate
|
||||
9
res/scripts/js/Demo.js
Normal file
9
res/scripts/js/Demo.js
Normal file
@ -0,0 +1,9 @@
|
||||
function onBytesRead(data) {
|
||||
jsRunner.xPrint("read: " + data);
|
||||
jsRunner.xWriteBytes(data);
|
||||
}
|
||||
|
||||
while (!jsRunner.xIsInterruptionRequested()) {
|
||||
jsRunner.xWriteBytes("hello");
|
||||
jsRunner.xSleep(1000);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user