摘要: 创建数据的方式 const map = immutable.Map({ a : 1, b : 2, c : { f : 5 } }) const map = immutable.fromJS({ a:1, b:2, c:3, d : { f : 4 } }) const list = immutab 阅读全文
posted @ 2020-12-02 18:09 很小的小雨 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 树形结构 let tree = [{ id: '01000000', text: '北京', children: [{ id: '01001000', text: '北京市', children: [ { id: '01001001', text: '西城区', children: null, }, 阅读全文
posted @ 2020-12-02 10:13 很小的小雨 阅读(1488) 评论(0) 推荐(0) 编辑