关于JDBCUtils工具类的介绍与使用

    科技2026-06-17  1

    关于JDBCUtils工具类的介绍与使用 目录 前言 一、JDBCUtils是什么? 二、JDBCUtils由哪些部分组成? 1、常用变量 2、完成初始化操作 3、获取连接 4、非查询方法(增删改等功能) 5、查询方法 6、释放资源 三、总结 前言 程序员的天职是什么?在我看来,最基础的能力就是消灭重复化的劳动,把一切繁杂琐碎的事整合为程序化的任务。 基于此目的,我们把一些常用的变量和方法封装入JDBCUtils类中,即可达到一劳永逸的美好编程体验。

    [注] 本文以阿里提供的Druid为例,阅读本文前应对其有基本了解。如果没有就把代码当成例子来看,想要实现必须有Druid.jar和Druid.properties文件,本文不会赘述。

    一、JDBCUtils是什么? 直观上来看,JDBC指的是Java Database Connectivity 即Java数据库连接,Utils意为通用工具类,由此可知,这个类将承担为主服务类提供工具的任务。 正如前言中所说的,在访问数据库数据的过程中,有很多代码重复度很高,因此我们把这些重复的代码封装入工具类中,以此来提高程序的观赏性和可读性,还能显著提高我们的编程效率。

    二、JDBCUtils由哪些部分组成? 众所周知,JDBC操作数据的流程分为五个步骤。

    1.加载驱动 2.获取连接 3.获得执行sql语句的对象 4.处理得到的数据集 5.释放资源

    以上五个步骤都有必要编入工具类中,但除此之外,我们还需要把一些常用到的变量设为静态变量放入工具类的首部。

    1、常用变量 代码如下:

    private static String DriverClass;//加载驱动时的路径 private static String Url;//数据库的路径 private static String Username;//数据库的登录名 private static String Password;//数据据库的登录密码 private static DataSource ds;//数据集

    2、完成初始化操作 [注]:可能会有人看不懂下面代码里注释中写的配置文件是什么,这时候你就得再仔细看看前言啦!但没关系,两个选择,了解一下阿里的Druid,或者忽略2,其实不影响你看后文的。

    代码如下:

    static { // 加载配置文件中的数据 //想知道有哪些数据可以去看看官方文档哦 InputStream ist = JDBCUtils.class.getClassLoader().getResourceAsStream("/druid.properties"); Properties prop = new Properties(); try { prop.load(ist); // 创建连接池,使用配置文件中的参数 ds = DruidDataSourceFactory.createDataSource(prop); } catch (IOException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } }

    3、获取连接 // 获取数据库连接对象 public static synchronized Connection getConnection() { if (dataSource == null || dataSource.isClosed()) try { return dataSource.getConnection(); } catch (SQLException e) { e.printStackTrace(); } return null; }

    4、非查询方法(增删改等功能) public static int exeUpdate(String sql, Object… params) { //params意为参数 //注意,Object… params,这是java的新特性,叫做变长数组,不知道的小伙伴可以学习一下 Connection coon = null; PreparedStatement ps = null; try { coon = getConnnection(); ps = coon.prepareStatement(sql); //prepareStatement可有效防止sql注入攻击 } catch (SQLException e) { e.printStackTrace(); } if (Objects.nonNull(params)) { try { ps.setObject(object, params); } catch (SQLException e) { e.printStackTrace(); } } } int i = 0; //这里的i表示的是完成操作的数量,或者说是受影响的数据库数据的数量。 try { i = ps.executeUpdate(); close(coon,ps); } catch (SQLException e) { e.printStackTrace(); } return i; //注意这里和查询方法的区别 }

    5、查询方法 public static T queryOne(Class t, String sql, Object… params) { //再次强调 Object… params 变长数组 List<Map<String, Object>> list = getDataPair(sql,params); if(!list.isEmpty()){ Map<String, Object> map = list.get(0); T obj = parseMapToBean(map,t); return obj; } return null; }

    6、释放资源 public static void close(PrepareStatement ps,Connection conn) { if(conn != null) { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } if(ps != null) { try { ps.close(); } catch (SQLException e) { e.printStackTrace(); } }

    public static void close(ResultSet rs,PrepareStatement ps,Connection conn) { if(rs!=null){ try { rs.close(); } catch (SQLException e) { e.printStackTrace(); } } JDBCUtils.close(pstmt,conn); }

    三、总结 以上就是我对JDBCUtils的理解,本文仅仅简单介绍了这个JDBCUtils的组成与使用,有兴趣可以看看阿里Druid的官方文档。 本文的JDBCUtils类是借助Druid实现的,但其实Druid是主要应用于数据库连接池方面,且表现极为出色,还请读者千万误解。 也许有时间我还会再写一篇关于它的博客。

    欢迎使用Markdown编辑器

    你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。

    新的改变

    我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:

    全新的界面设计 ,将会带来全新的写作体验;在创作中心设置你喜爱的代码高亮样式,Markdown 将代码片显示选择的高亮样式 进行展示;增加了 图片拖拽 功能,你可以将本地的图片直接拖拽到编辑区域直接展示;全新的 KaTeX数学公式 语法;增加了支持甘特图的mermaid语法1 功能;增加了 多屏幕编辑 Markdown文章功能;增加了 焦点写作模式、预览模式、简洁写作模式、左右区域同步滚轮设置 等功能,功能按钮位于编辑区域与预览区域中间;增加了 检查列表 功能。

    功能快捷键

    撤销:Ctrl/Command + Z 重做:Ctrl/Command + Y 加粗:Ctrl/Command + B 斜体:Ctrl/Command + I 标题:Ctrl/Command + Shift + H 无序列表:Ctrl/Command + Shift + U 有序列表:Ctrl/Command + Shift + O 检查列表:Ctrl/Command + Shift + C 插入代码:Ctrl/Command + Shift + K 插入链接:Ctrl/Command + Shift + L 插入图片:Ctrl/Command + Shift + G 查找:Ctrl/Command + F 替换:Ctrl/Command + G

    合理的创建标题,有助于目录的生成

    直接输入1次#,并按下space后,将生成1级标题。 输入2次#,并按下space后,将生成2级标题。 以此类推,我们支持6级标题。有助于使用TOC语法后生成一个完美的目录。

    如何改变文本的样式

    强调文本 强调文本

    加粗文本 加粗文本

    标记文本

    删除文本

    引用文本

    H2O is是液体。

    210 运算结果是 1024.

    插入链接与图片

    链接: link.

    图片:

    带尺寸的图片:

    居中的图片:

    居中并且带尺寸的图片:

    当然,我们为了让用户更加便捷,我们增加了图片拖拽功能。

    如何插入一段漂亮的代码片

    去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片.

    // An highlighted block var foo = 'bar';

    生成一个适合你的列表

    项目 项目 项目 项目1项目2项目3 计划任务 完成任务

    创建一个表格

    一个简单的表格是这么创建的:

    项目Value电脑$1600手机$12导管$1

    设定内容居中、居左、居右

    使用:---------:居中 使用:----------居左 使用----------:居右

    第一列第二列第三列第一列文本居中第二列文本居右第三列文本居左

    SmartyPants

    SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:

    TYPEASCIIHTMLSingle backticks'Isn't this fun?'‘Isn’t this fun?’Quotes"Isn't this fun?"“Isn’t this fun?”Dashes-- is en-dash, --- is em-dash– is en-dash, — is em-dash

    创建一个自定义列表

    Markdown Text-to- HTML conversion tool Authors John Luke

    如何创建一个注脚

    一个具有注脚的文本。2

    注释也是必不可少的

    Markdown将文本转换为 HTML。

    KaTeX数学公式

    您可以使用渲染LaTeX数学表达式 KaTeX:

    Gamma公式展示 Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n1)!nN 是通过欧拉积分

    Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t   . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. Γ(z)=0tz1etdt.

    你可以找到更多关于的信息 LaTeX 数学表达式here.

    新的甘特图功能,丰富你的文章

    Mon 06 Mon 13 Mon 20 已完成 进行中 计划一 计划二 现有任务 Adding GANTT diagram functionality to mermaid 关于 甘特图 语法,参考 这儿,

    UML 图表

    可以使用UML图表进行渲染。 Mermaid. 例如下面产生的一个序列图:

    #mermaid-svg-8ldquZUV1RVOv0yw .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-8ldquZUV1RVOv0yw .label text{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .node rect,#mermaid-svg-8ldquZUV1RVOv0yw .node circle,#mermaid-svg-8ldquZUV1RVOv0yw .node ellipse,#mermaid-svg-8ldquZUV1RVOv0yw .node polygon,#mermaid-svg-8ldquZUV1RVOv0yw .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-8ldquZUV1RVOv0yw .node .label{text-align:center;fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .node.clickable{cursor:pointer}#mermaid-svg-8ldquZUV1RVOv0yw .arrowheadPath{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-8ldquZUV1RVOv0yw .flowchart-link{stroke:#333;fill:none}#mermaid-svg-8ldquZUV1RVOv0yw .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-8ldquZUV1RVOv0yw .edgeLabel rect{opacity:0.9}#mermaid-svg-8ldquZUV1RVOv0yw .edgeLabel span{color:#333}#mermaid-svg-8ldquZUV1RVOv0yw .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-8ldquZUV1RVOv0yw .cluster text{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-8ldquZUV1RVOv0yw .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-8ldquZUV1RVOv0yw text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-8ldquZUV1RVOv0yw .actor-line{stroke:grey}#mermaid-svg-8ldquZUV1RVOv0yw .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-8ldquZUV1RVOv0yw .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-8ldquZUV1RVOv0yw #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-8ldquZUV1RVOv0yw .sequenceNumber{fill:#fff}#mermaid-svg-8ldquZUV1RVOv0yw #sequencenumber{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw #crosshead path{fill:#333;stroke:#333}#mermaid-svg-8ldquZUV1RVOv0yw .messageText{fill:#333;stroke:#333}#mermaid-svg-8ldquZUV1RVOv0yw .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-8ldquZUV1RVOv0yw .labelText,#mermaid-svg-8ldquZUV1RVOv0yw .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-8ldquZUV1RVOv0yw .loopText,#mermaid-svg-8ldquZUV1RVOv0yw .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-8ldquZUV1RVOv0yw .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-8ldquZUV1RVOv0yw .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-8ldquZUV1RVOv0yw .noteText,#mermaid-svg-8ldquZUV1RVOv0yw .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-8ldquZUV1RVOv0yw .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-8ldquZUV1RVOv0yw .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-8ldquZUV1RVOv0yw .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-8ldquZUV1RVOv0yw .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .section{stroke:none;opacity:0.2}#mermaid-svg-8ldquZUV1RVOv0yw .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-8ldquZUV1RVOv0yw .section2{fill:#fff400}#mermaid-svg-8ldquZUV1RVOv0yw .section1,#mermaid-svg-8ldquZUV1RVOv0yw .section3{fill:#fff;opacity:0.2}#mermaid-svg-8ldquZUV1RVOv0yw .sectionTitle0{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .sectionTitle1{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .sectionTitle2{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .sectionTitle3{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-8ldquZUV1RVOv0yw .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .grid path{stroke-width:0}#mermaid-svg-8ldquZUV1RVOv0yw .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-8ldquZUV1RVOv0yw .task{stroke-width:2}#mermaid-svg-8ldquZUV1RVOv0yw .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .taskText:not([font-size]){font-size:11px}#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-8ldquZUV1RVOv0yw .task.clickable{cursor:pointer}#mermaid-svg-8ldquZUV1RVOv0yw .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-8ldquZUV1RVOv0yw .taskText0,#mermaid-svg-8ldquZUV1RVOv0yw .taskText1,#mermaid-svg-8ldquZUV1RVOv0yw .taskText2,#mermaid-svg-8ldquZUV1RVOv0yw .taskText3{fill:#fff}#mermaid-svg-8ldquZUV1RVOv0yw .task0,#mermaid-svg-8ldquZUV1RVOv0yw .task1,#mermaid-svg-8ldquZUV1RVOv0yw .task2,#mermaid-svg-8ldquZUV1RVOv0yw .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutside0,#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutside2{fill:#000}#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutside1,#mermaid-svg-8ldquZUV1RVOv0yw .taskTextOutside3{fill:#000}#mermaid-svg-8ldquZUV1RVOv0yw .active0,#mermaid-svg-8ldquZUV1RVOv0yw .active1,#mermaid-svg-8ldquZUV1RVOv0yw .active2,#mermaid-svg-8ldquZUV1RVOv0yw .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-8ldquZUV1RVOv0yw .activeText0,#mermaid-svg-8ldquZUV1RVOv0yw .activeText1,#mermaid-svg-8ldquZUV1RVOv0yw .activeText2,#mermaid-svg-8ldquZUV1RVOv0yw .activeText3{fill:#000 !important}#mermaid-svg-8ldquZUV1RVOv0yw .done0,#mermaid-svg-8ldquZUV1RVOv0yw .done1,#mermaid-svg-8ldquZUV1RVOv0yw .done2,#mermaid-svg-8ldquZUV1RVOv0yw .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-8ldquZUV1RVOv0yw .doneText0,#mermaid-svg-8ldquZUV1RVOv0yw .doneText1,#mermaid-svg-8ldquZUV1RVOv0yw .doneText2,#mermaid-svg-8ldquZUV1RVOv0yw .doneText3{fill:#000 !important}#mermaid-svg-8ldquZUV1RVOv0yw .crit0,#mermaid-svg-8ldquZUV1RVOv0yw .crit1,#mermaid-svg-8ldquZUV1RVOv0yw .crit2,#mermaid-svg-8ldquZUV1RVOv0yw .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-8ldquZUV1RVOv0yw .activeCrit0,#mermaid-svg-8ldquZUV1RVOv0yw .activeCrit1,#mermaid-svg-8ldquZUV1RVOv0yw .activeCrit2,#mermaid-svg-8ldquZUV1RVOv0yw .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-8ldquZUV1RVOv0yw .doneCrit0,#mermaid-svg-8ldquZUV1RVOv0yw .doneCrit1,#mermaid-svg-8ldquZUV1RVOv0yw .doneCrit2,#mermaid-svg-8ldquZUV1RVOv0yw .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-8ldquZUV1RVOv0yw .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-8ldquZUV1RVOv0yw .milestoneText{font-style:italic}#mermaid-svg-8ldquZUV1RVOv0yw .doneCritText0,#mermaid-svg-8ldquZUV1RVOv0yw .doneCritText1,#mermaid-svg-8ldquZUV1RVOv0yw .doneCritText2,#mermaid-svg-8ldquZUV1RVOv0yw .doneCritText3{fill:#000 !important}#mermaid-svg-8ldquZUV1RVOv0yw .activeCritText0,#mermaid-svg-8ldquZUV1RVOv0yw .activeCritText1,#mermaid-svg-8ldquZUV1RVOv0yw .activeCritText2,#mermaid-svg-8ldquZUV1RVOv0yw .activeCritText3{fill:#000 !important}#mermaid-svg-8ldquZUV1RVOv0yw .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-8ldquZUV1RVOv0yw g.classGroup text .title{font-weight:bolder}#mermaid-svg-8ldquZUV1RVOv0yw g.clickable{cursor:pointer}#mermaid-svg-8ldquZUV1RVOv0yw g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-8ldquZUV1RVOv0yw g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-8ldquZUV1RVOv0yw .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-8ldquZUV1RVOv0yw .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-8ldquZUV1RVOv0yw .dashed-line{stroke-dasharray:3}#mermaid-svg-8ldquZUV1RVOv0yw #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw .commit-id,#mermaid-svg-8ldquZUV1RVOv0yw .commit-msg,#mermaid-svg-8ldquZUV1RVOv0yw .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-8ldquZUV1RVOv0yw g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-8ldquZUV1RVOv0yw g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-8ldquZUV1RVOv0yw g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-8ldquZUV1RVOv0yw .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-8ldquZUV1RVOv0yw .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-8ldquZUV1RVOv0yw .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-8ldquZUV1RVOv0yw .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-8ldquZUV1RVOv0yw .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-8ldquZUV1RVOv0yw .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-8ldquZUV1RVOv0yw .edgeLabel text{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ldquZUV1RVOv0yw .node circle.state-start{fill:black;stroke:black}#mermaid-svg-8ldquZUV1RVOv0yw .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-8ldquZUV1RVOv0yw #statediagram-barbEnd{fill:#9370db}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-state .divider{stroke:#9370db}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-8ldquZUV1RVOv0yw .note-edge{stroke-dasharray:5}#mermaid-svg-8ldquZUV1RVOv0yw .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-8ldquZUV1RVOv0yw .error-icon{fill:#522}#mermaid-svg-8ldquZUV1RVOv0yw .error-text{fill:#522;stroke:#522}#mermaid-svg-8ldquZUV1RVOv0yw .edge-thickness-normal{stroke-width:2px}#mermaid-svg-8ldquZUV1RVOv0yw .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-8ldquZUV1RVOv0yw .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-8ldquZUV1RVOv0yw .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-8ldquZUV1RVOv0yw .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-8ldquZUV1RVOv0yw .marker{fill:#333}#mermaid-svg-8ldquZUV1RVOv0yw .marker.cross{stroke:#333} :root { --mermaid-font-family: "trebuchet ms", verdana, arial;} #mermaid-svg-8ldquZUV1RVOv0yw { color: rgba(0, 0, 0, 0.75); font: ; } 张三 李四 王五 你好!李四, 最近怎么样? 你最近怎么样,王五? 我很好,谢谢! 我很好,谢谢! 李四想了很长时间, 文字太长了 不适合放在一行. 打量着王五... 很好... 王五, 你怎么样? 张三 李四 王五

    这将产生一个流程图。:

    #mermaid-svg-2NNAygNF6WBml3l7 .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-2NNAygNF6WBml3l7 .label text{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .node rect,#mermaid-svg-2NNAygNF6WBml3l7 .node circle,#mermaid-svg-2NNAygNF6WBml3l7 .node ellipse,#mermaid-svg-2NNAygNF6WBml3l7 .node polygon,#mermaid-svg-2NNAygNF6WBml3l7 .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-2NNAygNF6WBml3l7 .node .label{text-align:center;fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .node.clickable{cursor:pointer}#mermaid-svg-2NNAygNF6WBml3l7 .arrowheadPath{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-2NNAygNF6WBml3l7 .flowchart-link{stroke:#333;fill:none}#mermaid-svg-2NNAygNF6WBml3l7 .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-2NNAygNF6WBml3l7 .edgeLabel rect{opacity:0.9}#mermaid-svg-2NNAygNF6WBml3l7 .edgeLabel span{color:#333}#mermaid-svg-2NNAygNF6WBml3l7 .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-2NNAygNF6WBml3l7 .cluster text{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-2NNAygNF6WBml3l7 .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-2NNAygNF6WBml3l7 text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-2NNAygNF6WBml3l7 .actor-line{stroke:grey}#mermaid-svg-2NNAygNF6WBml3l7 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-2NNAygNF6WBml3l7 .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-2NNAygNF6WBml3l7 #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-2NNAygNF6WBml3l7 .sequenceNumber{fill:#fff}#mermaid-svg-2NNAygNF6WBml3l7 #sequencenumber{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 #crosshead path{fill:#333;stroke:#333}#mermaid-svg-2NNAygNF6WBml3l7 .messageText{fill:#333;stroke:#333}#mermaid-svg-2NNAygNF6WBml3l7 .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-2NNAygNF6WBml3l7 .labelText,#mermaid-svg-2NNAygNF6WBml3l7 .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-2NNAygNF6WBml3l7 .loopText,#mermaid-svg-2NNAygNF6WBml3l7 .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-2NNAygNF6WBml3l7 .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-2NNAygNF6WBml3l7 .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-2NNAygNF6WBml3l7 .noteText,#mermaid-svg-2NNAygNF6WBml3l7 .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-2NNAygNF6WBml3l7 .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-2NNAygNF6WBml3l7 .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-2NNAygNF6WBml3l7 .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-2NNAygNF6WBml3l7 .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .section{stroke:none;opacity:0.2}#mermaid-svg-2NNAygNF6WBml3l7 .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-2NNAygNF6WBml3l7 .section2{fill:#fff400}#mermaid-svg-2NNAygNF6WBml3l7 .section1,#mermaid-svg-2NNAygNF6WBml3l7 .section3{fill:#fff;opacity:0.2}#mermaid-svg-2NNAygNF6WBml3l7 .sectionTitle0{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .sectionTitle1{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .sectionTitle2{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .sectionTitle3{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-2NNAygNF6WBml3l7 .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .grid path{stroke-width:0}#mermaid-svg-2NNAygNF6WBml3l7 .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-2NNAygNF6WBml3l7 .task{stroke-width:2}#mermaid-svg-2NNAygNF6WBml3l7 .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .taskText:not([font-size]){font-size:11px}#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-2NNAygNF6WBml3l7 .task.clickable{cursor:pointer}#mermaid-svg-2NNAygNF6WBml3l7 .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-2NNAygNF6WBml3l7 .taskText0,#mermaid-svg-2NNAygNF6WBml3l7 .taskText1,#mermaid-svg-2NNAygNF6WBml3l7 .taskText2,#mermaid-svg-2NNAygNF6WBml3l7 .taskText3{fill:#fff}#mermaid-svg-2NNAygNF6WBml3l7 .task0,#mermaid-svg-2NNAygNF6WBml3l7 .task1,#mermaid-svg-2NNAygNF6WBml3l7 .task2,#mermaid-svg-2NNAygNF6WBml3l7 .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutside0,#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutside2{fill:#000}#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutside1,#mermaid-svg-2NNAygNF6WBml3l7 .taskTextOutside3{fill:#000}#mermaid-svg-2NNAygNF6WBml3l7 .active0,#mermaid-svg-2NNAygNF6WBml3l7 .active1,#mermaid-svg-2NNAygNF6WBml3l7 .active2,#mermaid-svg-2NNAygNF6WBml3l7 .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-2NNAygNF6WBml3l7 .activeText0,#mermaid-svg-2NNAygNF6WBml3l7 .activeText1,#mermaid-svg-2NNAygNF6WBml3l7 .activeText2,#mermaid-svg-2NNAygNF6WBml3l7 .activeText3{fill:#000 !important}#mermaid-svg-2NNAygNF6WBml3l7 .done0,#mermaid-svg-2NNAygNF6WBml3l7 .done1,#mermaid-svg-2NNAygNF6WBml3l7 .done2,#mermaid-svg-2NNAygNF6WBml3l7 .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-2NNAygNF6WBml3l7 .doneText0,#mermaid-svg-2NNAygNF6WBml3l7 .doneText1,#mermaid-svg-2NNAygNF6WBml3l7 .doneText2,#mermaid-svg-2NNAygNF6WBml3l7 .doneText3{fill:#000 !important}#mermaid-svg-2NNAygNF6WBml3l7 .crit0,#mermaid-svg-2NNAygNF6WBml3l7 .crit1,#mermaid-svg-2NNAygNF6WBml3l7 .crit2,#mermaid-svg-2NNAygNF6WBml3l7 .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-2NNAygNF6WBml3l7 .activeCrit0,#mermaid-svg-2NNAygNF6WBml3l7 .activeCrit1,#mermaid-svg-2NNAygNF6WBml3l7 .activeCrit2,#mermaid-svg-2NNAygNF6WBml3l7 .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-2NNAygNF6WBml3l7 .doneCrit0,#mermaid-svg-2NNAygNF6WBml3l7 .doneCrit1,#mermaid-svg-2NNAygNF6WBml3l7 .doneCrit2,#mermaid-svg-2NNAygNF6WBml3l7 .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-2NNAygNF6WBml3l7 .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-2NNAygNF6WBml3l7 .milestoneText{font-style:italic}#mermaid-svg-2NNAygNF6WBml3l7 .doneCritText0,#mermaid-svg-2NNAygNF6WBml3l7 .doneCritText1,#mermaid-svg-2NNAygNF6WBml3l7 .doneCritText2,#mermaid-svg-2NNAygNF6WBml3l7 .doneCritText3{fill:#000 !important}#mermaid-svg-2NNAygNF6WBml3l7 .activeCritText0,#mermaid-svg-2NNAygNF6WBml3l7 .activeCritText1,#mermaid-svg-2NNAygNF6WBml3l7 .activeCritText2,#mermaid-svg-2NNAygNF6WBml3l7 .activeCritText3{fill:#000 !important}#mermaid-svg-2NNAygNF6WBml3l7 .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-2NNAygNF6WBml3l7 g.classGroup text .title{font-weight:bolder}#mermaid-svg-2NNAygNF6WBml3l7 g.clickable{cursor:pointer}#mermaid-svg-2NNAygNF6WBml3l7 g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-2NNAygNF6WBml3l7 g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-2NNAygNF6WBml3l7 .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-2NNAygNF6WBml3l7 .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-2NNAygNF6WBml3l7 .dashed-line{stroke-dasharray:3}#mermaid-svg-2NNAygNF6WBml3l7 #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 .commit-id,#mermaid-svg-2NNAygNF6WBml3l7 .commit-msg,#mermaid-svg-2NNAygNF6WBml3l7 .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-2NNAygNF6WBml3l7 g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-2NNAygNF6WBml3l7 g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-2NNAygNF6WBml3l7 g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-2NNAygNF6WBml3l7 .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-2NNAygNF6WBml3l7 .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-2NNAygNF6WBml3l7 .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-2NNAygNF6WBml3l7 .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-2NNAygNF6WBml3l7 .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-2NNAygNF6WBml3l7 .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-2NNAygNF6WBml3l7 .edgeLabel text{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-2NNAygNF6WBml3l7 .node circle.state-start{fill:black;stroke:black}#mermaid-svg-2NNAygNF6WBml3l7 .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-2NNAygNF6WBml3l7 #statediagram-barbEnd{fill:#9370db}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-state .divider{stroke:#9370db}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-2NNAygNF6WBml3l7 .note-edge{stroke-dasharray:5}#mermaid-svg-2NNAygNF6WBml3l7 .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-2NNAygNF6WBml3l7 .error-icon{fill:#522}#mermaid-svg-2NNAygNF6WBml3l7 .error-text{fill:#522;stroke:#522}#mermaid-svg-2NNAygNF6WBml3l7 .edge-thickness-normal{stroke-width:2px}#mermaid-svg-2NNAygNF6WBml3l7 .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-2NNAygNF6WBml3l7 .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-2NNAygNF6WBml3l7 .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-2NNAygNF6WBml3l7 .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-2NNAygNF6WBml3l7 .marker{fill:#333}#mermaid-svg-2NNAygNF6WBml3l7 .marker.cross{stroke:#333} :root { --mermaid-font-family: "trebuchet ms", verdana, arial;} #mermaid-svg-2NNAygNF6WBml3l7 { color: rgba(0, 0, 0, 0.75); font: ; } 链接 长方形 圆 圆角长方形 菱形 关于 Mermaid 语法,参考 这儿,

    FLowchart流程图

    我们依旧会支持flowchart的流程图:

    Created with Raphaël 2.2.0 开始 我的操作 确认? 结束 yes no 关于 Flowchart流程图 语法,参考 这儿.

    导出与导入

    导出

    如果你想尝试使用此编辑器, 你可以在此篇文章任意编辑。当你完成了一篇文章的写作, 在上方工具栏找到 文章导出 ,生成一个.md文件或者.html文件进行本地保存。

    导入

    如果你想加载一篇你写过的.md文件,在上方工具栏可以选择导入功能进行对应扩展名的文件导入, 继续你的创作。


    mermaid语法说明 ↩︎

    注脚的解释 ↩︎

    Processed: 0.010, SQL: 9