标题
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
字体
**加粗的文字**:加粗的文字
~~删除的文字~~:删除的文字
*倾斜的文字*:倾斜的文字
高亮的文字:高亮的文字
<font color=#008000>绿色的文字</font>:绿色的文字
JavaScript代码
//转Base64格式图片
export function toBase64Image (data:any){
return new Promise((resolve, reject) => {
const fileReader = new FileReader();
fileReader.onload = (e:any) => {
resolve(e.target.result);
};
fileReader.readAsDataURL(data);
fileReader.onerror = () => {
reject(new Error('文件流异常'));
};
});
}
shell脚本
git -v
引用
这里是一级引用
这里是二级引用
这里是三级引用
分割线
三个中划线---可以生成分割线,线较细,颜色较浅
或者三个星号***,线较粗,颜色较深
超链接
表格
| 标题 | 第二项 | 第三项 |
|---|---|---|
| 数据 | 200 | 20 |
| 数据 | 300 | 30 |
| 数据 | 400 | 40 |
列表
无序列表
- 第一列
- 第 1.1 列
- 第 1.2 列
- 第二列
- 第三列
- 第 3.1 列
- 第 3.2 列
有序列表
- 第一列
- 第二列
- 第三列
表情
😍😜😅😂😱😁😄
@提及
我提到 @test2
上传文件
!file新建文本文档.rar
上传图片
上传视频
!video海边.mp4
隐藏内容
此处填写隐藏内容, hide标签上下必须空一行 这里要密码才能看到,可以退出登录或登录其它账号看效果。
这里的内容要回复话题才能看到😆
公式
上标、下标
$10^4$:
$10_4$:
括号
小括号、中括号、大括号
小括号、中括号$(2+3)[4+4]$
大括号$\left((2+3)[4+4]\right)$
花括号
$\{a*b\}$
$\{a*b\}:\{a+b\}$
积分
$\int_{r=1}^\infty$\int表示积分,r=1表示基本下限
$\iint_{r=1}^\infty$\iint 表示多重积分
求和
$\sum_{r=1}^n$
图表
graph TD
Start --> Stop
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
timeline
title 平台的发展历史
2015 : 微软
2016 : 巨硬
: Google
2017 : 哈哈
2018 : 哈哈哈