研究掘金的markMown
# 是标题
两边各俩**是粗体,两边各一个*是斜体
我是粗体 我是斜体
>是引入
我是引入
链接
图片
早日LV8
代码
JavaScript是一种广泛使用的脚本编程语言,常用于前端开发、网页交互和服务器端编程。
代码片段
- 这个好像是在掘金上写的代码
代码块
var ajax = new XMLHttpRequest();
ajax.open('post','juejin.cn',true);
ajax.setRequestHeader('content-type','application/x-www-form-urlencoded');
ajax.send("aid=2608&avatar=p3-juejin.byteimg.com");
ajax.onreadystatechange = function (){
if(ajax.readyState==4&&ajax.status==200){
var c = ajax.responseText;
console.log(c)
}
}
无序列表
- -是无序
- 无序2
- 无序3
有序列表
- 1.开始
- 我是第二条
- 我是第3条
删除线
两边是~~
我是删除线
任务列表
- 怎么玩
- 前面多个框
- 怎么选中呢???
表格
| 标题 | 标题二 |
|---|---|
| hello | word |
行内公式
块级公式
图表
graph TD
Start --> test --> 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
mindmap
Root
A
B
C
timeline
title History of Social Media Platform
2002 : LinkedIn
2004 : Facebook
: Google
2005 : Youtube
2006 : Twitter
注:图表都是官方的示例图
思考
别人的小飞机怎么做到啊,谁会啊教教我啊