Skip to content

Commit cd497e5

Browse files
committed
update readme
1 parent 41c3206 commit cd497e5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@
44

55
This is a JS library for Chinese static websites to quickly create its English version.
66

7-
版本:v1.1
7+
版本:v1.2
88

99
by [xuanzhi33](https://github.com/xuanzhi33/)
1010

11-
demo: [www.xuanzhi33.cn](https://www.xuanzhi33.cn/)
12-
1311
## 引入
1412
1. 请在`</body>`前引入本js
1513
2. 在引入本js前需先引入jQuery库,推荐使用cdn:
1614

1715
```
18-
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.0/dist/jquery.min.js"></script>
16+
<script src="https://unpkg.com/jquery@3/dist/jquery.min.js"></script>
1917
```
2018
3. 您可下载本仓库中的translate.js后引入或者直接使用cdn引入:
2119

2220
```
23-
<script src="https://cdn.jsdelivr.net/gh/xuanzhi33/translate.js@v1.1/translate.js"></script>
21+
<script src="https://unpkg.com/@xuanzhi33/translate.js"></script>
2422
```
2523

2624
## 用法
@@ -31,3 +29,4 @@ demo: [www.xuanzhi33.cn](https://www.xuanzhi33.cn/)
3129
4. 语言切换方式
3230
- 自动切换:系统语言为英文时访问该页面将自动显示为英文。
3331
- 手动切换:需在页面上添加class为transBtn的按钮,用户点击该按钮来切换语言。
32+

0 commit comments

Comments
 (0)