\`\`\`sequence A->B: Hello B(请求)? Note right of B: 对B的一些描述信息 Note left of A: 对A的一些描述 B-->A: I'm find(响应)!两杠是虚线 A->B: I'm really find. B-B: I'm touch myself. \`\`\`
效果:
A->B: Hello B(请求)? Note right of B: 对B的一些描述信息 Note left of A: 对A的一些描述 B-->A: I'm find(响应)!两杠是虚线 A->B: I'm really find. B-B: I'm touch myself.
复杂示例
源代码:
\`\`\`sequence Title: 使用:复杂使用 A->B: Hello B?(请求) Note right of B: 对B的描述 Note left of A: 对A的描述(提示) B-->A: I'm Find!(响应) B->C: How are you? C-->>A: B touch me A->B: are you sure? Note over C,B: We are friend participant C Note right of C: 没人陪我玩 \`\`\`
效果:
Title: 使用:复杂使用 A->B: Hello B?(请求) Note right of B: 对B的描述 Note left of A: 对A的描述(提示) B-->A: I'm Find!(响应) B->C: How are you? C-->>A: B touch me A->B: are you sure? Note over C,B: We are friend participant C Note right of C: 没人陪我玩