序列图的语法
文章目录
1.设置title,采用title:message的格式
title: 序列图标题
2.设置participant,采用participant:actor格式
participant A
participant B
3.设置note,有三种note方式:left of、right of、over
Note left of A:在A的左侧
Note right of A:在A的右侧
Note over C:覆盖C
Note over A,B:覆盖多个actor
4.设置会话
A->A:自言自语
A->B:实线实箭头
A–>B:虚线实箭头
A->>:实线虚箭头
A–>>:虚线虚箭头