hexo添加mermaid
12$cd blog/ # 走到博客根目录$yarn add hexo-filter-mermaid-diagrams # 安装mermaid插件 123456789# Mermaid tagmermaid: enable: true # Available themes: default | dark | forest | neutral theme: forest cdn: //cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js #cdn: //cdnjs.cloudflare.com/ajax/libs/mermaid/8.0.0/mermaid.min.js
groovy 基本语法 <1>
数值groovy 中数字表现为对象,都是Interge的实例 1234567graph TD; Number-->Byte Number-->Interge Number-->Double Number-->Float Number-->Short Number-->Long 字符串可以使用单引号(''),双引号(""),三引号('''''')三个单引号 双引号""内可使用${var.field}直接写代码 三引号''''''可写多行换行 12345678910111213package primaryclass StringDemo { static void main(String[] args) { def str = '''石头人vs托儿索 '''; ...
groovy 基本语法 <1>
groovy基本类型12345678910111213141516171819202122232425262728293031package primaryclass TypeDemo { static void main(args) { int x = 5; long y = 100L; float a = 10.56f; double b = 10.5e40; BigInteger bi = 30g; BigDecimal bd = 3.5g; println(x); println(y); println(a); println(b); println(bi); println(bd); println("The value of x is " + x + "The value of y is " + y); ...