-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix performance degradation * Bump version to 1.0.2
- Loading branch information
Showing
6 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ | |
依次加载以下四个 `script` 标签: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.min.js"></script> <!-- 必须加载 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.cn2t.min.js"></script> <!-- 需要简转繁时 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.t2cn.min.js"></script> <!-- 需要繁转简时 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/bundle-browser.min.js"></script><!-- 必须加载 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.min.js"></script> <!-- 必须加载 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.cn2t.min.js"></script> <!-- 需要简转繁时 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.t2cn.min.js"></script> <!-- 需要繁转简时 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/bundle-browser.min.js"></script><!-- 必须加载 --> | ||
``` | ||
|
||
**在 Node.js 中加载** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ | |
依次載入以下四個 `script` 標籤: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.min.js"></script> <!-- 必須載入 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.cn2t.min.js"></script> <!-- 需要簡轉繁時 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.t2cn.min.js"></script> <!-- 需要繁轉簡時 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/bundle-browser.min.js"></script><!-- 必須載入 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.min.js"></script> <!-- 必須載入 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.cn2t.min.js"></script> <!-- 需要簡轉繁時 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.t2cn.min.js"></script> <!-- 需要繁轉簡時 --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/bundle-browser.min.js"></script><!-- 必須載入 --> | ||
``` | ||
|
||
**在 Node.js 中載入** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,10 @@ The JavaScript version of Open Chinese Convert (OpenCC) | |
Import in HTML pages: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.min.js"></script> <!-- Required --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.cn2t.min.js"></script> <!-- For Simplified to Traditional --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/data.t2cn.min.js"></script> <!-- For Traditional Chinese to Simplified Chinese --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/bundle-browser.min.js"></script><!-- Required --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.min.js"></script> <!-- Required --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.cn2t.min.js"></script> <!-- For Simplified to Traditional --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/data.t2cn.min.js"></script> <!-- For Traditional Chinese to Simplified Chinese --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/bundle-browser.min.js"></script><!-- Required --> | ||
``` | ||
|
||
**Import opencc-js in Node.js script** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters