原创
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
官方示例mermaid flowchat st=>start: Start|End e=>end: End:>http://www.google.com op1=>operation: My Operation|past op2=>operation: Stuff|current sub1=>subroutine: My Subroutine|invalid cond=>condition: Yes or No?|approved:>http://www.baidu.com c2=>condition: Good idea|rejected io=>inputoutput: catch something...|request st->op1(right)->cond cond(yes, right)->c2 cond(no)->sub1(left)->op1 c2(yes)->io->e c2(no)->op2->e
Created with Raphaël 2.2.0StartMy OperationYes or No?Good ideacatch something...EndStuffMy Subroutineyesnoyesno
简单示例一mermaid flowchat st=>start: 开始 e=>end: 结束 xmlRead=>operation: 读取xml文件 xmlReadCon=>condition: 资源文件存在? xmlReadYes=>inputoutput: 资源文件存在 xmlReadNO=>inputoutput: 资源文件不存在 loadResoure=>operation: 加载资源文件 loadResoureCon=>condition: 加载成功? loadResoureYes=>inputoutput: 资源文件加载成功 loadResoureNo=>inputoutput: 资源文件加载失败 st->xmlRead->xmlReadCon xmlReadCon(yes,right)->xmlReadYes xmlReadCon(no,left)->xmlReadNO xmlRead