diff --git a/README.md b/README.md index f56625e..21eaee2 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,12 @@ ``` +你也可以在js中动态载入jsstp + +```javascript +var jsstp=await import("https://cdn.jsdelivr.net/gh/ukatech/jsstp-lib@v1.1.0.0/jsstp.mjs").then(m=>m.jsstp); +``` + ### 2. 使用 ```javascript diff --git a/README_CN.md b/README_CN.md index 4e8bca4..cc52229 100644 --- a/README_CN.md +++ b/README_CN.md @@ -15,6 +15,12 @@ ``` +你也可以在js中动态载入jsstp + +```javascript +var jsstp=await import("https://cdn.jsdelivr.net/gh/ukatech/jsstp-lib@v1.1.0.0/jsstp.mjs").then(m=>m.jsstp); +``` + ### 2. 使用 ```javascript diff --git a/README_EN.md b/README_EN.md index 44c8b2a..20e6a99 100644 --- a/README_EN.md +++ b/README_EN.md @@ -15,6 +15,12 @@ See [ukagaka](https://en.wikipedia.org/wiki/Ukagaka)&[SSTP](http://ssp.shillest. ``` +You can also load jsstp dynamically in js + +```javascript +var jsstp=await import("https://cdn.jsdelivr.net/gh/ukatech/jsstp-lib@v1.1.0.0/jsstp.mjs").then(m=>m.jsstp); +``` + ### 2. Use ```javascript diff --git a/README_JP.md b/README_JP.md index f59fc83..eff0aec 100644 --- a/README_JP.md +++ b/README_JP.md @@ -15,6 +15,12 @@ Webページでゴーストと通信し、情報をやりとりするためにjs ``` +jsstpはjsで動的に読み込むことも可能です。 + +```javascript +var jsstp=await import("https://cdn.jsdelivr.net/gh/ukatech/jsstp-lib@v1.1.0.0/jsstp.mjs").then(m=>m.jsstp); +``` + ### 2.使用する ```javascript