🚀作者简介
主页:水香木鱼的博客
专栏:技术文档
能量:🔋容量已消耗1%,自动充电中…
笺言:用博客记录每一次成长,书写五彩人生。
📒技术聊斋
(一)插入时序图
语法:
效果:
A B 是否已收到消息? 已收到消息 A B
(二)mermaid通过设定参与者(participants)的顺序控制二者的顺序
语法:
效果:
John Alice Hello John,how are you? Great! dont borther me ! Great! wait! Ok! John Alice
(三)便签
语法:
效果:
John Alice 左边的文本 Hello John, how are you? 跨越两个Actor的便签 John Alice
(四)循环Loops
语法:
效果:
Alice John Hello! Great! loop [Reply every minute] Alice John
(五)选择ALT与OPT
语法:
效果:
Alice Bob Hello Bob, How are you? not so good :( Feeling fresh like a daisy :) alt [is sick] [is well] Thanks for asking opt [Extra response] Alice Bob
(六)时序图demo
语法:
效果:
A subgraph
Rounded
Diamond with line break
Rounded square shape
Square shape
Circle shape
e
Really long text with linebreak
in an Odd shape
Cyrillic
Circle shape Начало
(七)插入甘特图
一个section和另一个section之间要空行
语法:
效果:
Mon 11 Mon 18 Mon 25 Mon 02 Mon 09 Mon 16 Mon 23 任务1 任务2 任务3 任务4 项目A 项目B 甘特图
语法说明
语法 | 功能 |
title | 标题 |
dateFormat | 日期格式 |
section | 模块 |
done | 已经完成 |
active | 当前正在进行 |
crit | 关键阶段 |
日期缺失 | 默认从上一项完成后 |
(八)甘特图demo
- section 项目名称
- 分任务名称 : [状态], [当前节点名称], [开始时间], 结束时间/持续时间
语法:
效果:
Mon 06 Mon 13 Mon 20 Completed task Active task Future task Future task2 Completed task in the critical line Implement parser and jison Create tests for parser Future task in critical line Create tests for renderer Add to mermaid Describe gantt syntax Add gantt diagram to demo page Add another diagram to demo page Describe gantt syntax Add gantt diagram to demo page Add another diagram to demo page A section Critical tasks Documentation Last section Adding GANTT diagram functionality to mermaid
木鱼谢语:感谢各位技术大牛们的点赞👍收藏🌟,每一期都会为大家带来快速适用于业务的文章,让大家做到cv即可。