1. nodes 属性来实现
    1. 接受标签字符串 最常用
      属性名:'<div>'
    2. 对象数组
      javascript
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      html:[
      {
      name:"div",
      attrs:{
      class:"my_div",
      style:"color:red;"
      },
      children:[
      {
      name:"p",
      attrs:{},
      children:[
      {
      type:"text",
      text:"hello"
      }
      ]
      }
      ]
      }
      ]