mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 13:11:03 +00:00
Updated Remote Script Execution (markdown)
parent
03f33f7a4c
commit
5b55e5f1c4
|
@ -2,20 +2,20 @@
|
||||||
Starting from version 0.2.7.19, WelsonJS supports the Remote Script Execution feature. You can test it as follows:
|
Starting from version 0.2.7.19, WelsonJS supports the Remote Script Execution feature. You can test it as follows:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cscript app.js https://oss.catswords.net/helloworld.js
|
cscript app.js https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to use it within your code, you can do it like this:
|
If you want to use it within your code, you can do it like this:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var HELO = require("https://oss.catswords.net/helloworld.js");
|
var HELO = require("https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js");
|
||||||
HELO.main();
|
HELO.main();
|
||||||
```
|
```
|
||||||
|
|
||||||
If it works correctly, the console will output the following results:
|
If it works correctly, the console will output the following results:
|
||||||
|
|
||||||
```
|
```
|
||||||
[*] Requested URL: https://oss.catswords.net/helloworld.js
|
[*] Requested URL: https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
|
||||||
[*] Received 81 bytes
|
[*] Received 81 bytes
|
||||||
[*] Hello world
|
[*] Hello world
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user