Skip to content

Commit 91aa2e0

Browse files
committed
update docs
1 parent ce2ea98 commit 91aa2e0

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

translate.js

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
/*transtale.js
1+
/*
2+
transtale.js
3+
v1.1
24
by xuanzhi33
3-
用法:
4-
1.在引入本js前需先引入jQuery
5-
2.本js用于为中文网页创建英文版本
6-
3.请将本js在</body>前引入
7-
4.格式:<element en="[英语内容]">[中文原文]</element>
8-
如 <p en="helloworld">你好世界</p>
9-
5.语言切换方式
10-
自动切换:系统语言为英文时访问该页面将自动显示为英文。
11-
手动切换:需在页面上添加class为transBtn的按钮,用户点击该按钮来切换语言。
125
*/
13-
146
function gc() {
157
var name = "transLang=";
168
var ca = document.cookie.split(';');

0 commit comments

Comments
 (0)