Skip to content

Commit 7e1c528

Browse files
committed
update docs
1 parent d2b10c2 commit 7e1c528

File tree

1 file changed

+9
-37
lines changed

1 file changed

+9
-37
lines changed

docs/index.md

+9-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,9 @@
1-
## Welcome to GitHub Pages
2-
3-
You can use the [editor on GitHub](https://github.com/xuanzhi33/translate.js/edit/master/docs/index.md) to maintain and preview the content for your website in Markdown files.
4-
5-
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files.
6-
7-
### Markdown
8-
9-
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
10-
11-
```markdown
12-
Syntax highlighted code block
13-
14-
# Header 1
15-
## Header 2
16-
### Header 3
17-
18-
- Bulleted
19-
- List
20-
21-
1. Numbered
22-
2. List
23-
24-
**Bold** and _Italic_ and `Code` text
25-
26-
[Link](url) and ![Image](src)
27-
```
28-
29-
For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
30-
31-
### Jekyll Themes
32-
33-
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/xuanzhi33/translate.js/settings). The name of this theme is saved in the Jekyll `_config.yml` configuration file.
34-
35-
### Support or Contact
36-
37-
Having trouble with Pages? Check out our [documentation](https://docs.github.com/categories/github-pages-basics/) or [contact support](https://github.com/contact) and we’ll help you sort it out.
1+
## 用法:
2+
1.在引入本js前需先引入jQuery
3+
2.本js用于为中文网页创建英文版本
4+
3.请将本js在</body>前引入
5+
4.格式:<element en="[英语内容]">[中文原文]</element>
6+
如 <p en="helloworld">你好世界</p>
7+
5.语言切换方式
8+
自动切换:系统语言为英文时访问该页面将自动显示为英文。
9+
手动切换:需在页面上添加class为transBtn的按钮,用户点击该按钮来切换语言。

0 commit comments

Comments
 (0)