mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21:21:03 +00:00
Updated Remote Script Execution (markdown)
parent
6ee9d155e2
commit
03f33f7a4c
|
@ -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://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
|
cscript app.js https://oss.catswords.net/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://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js");
|
var HELO = require("https://oss.catswords.net/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://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
|
[*] Requested URL: https://oss.catswords.net/helloworld.js
|
||||||
[*] Received 81 bytes
|
[*] Received 81 bytes
|
||||||
[*] Hello world
|
[*] Hello world
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user