收藏
回答

一个array的必填项如何填入object

circles

回答关注问题邀请回答
收藏

2 个回答

  • 微派蓝色雪狐
    微派蓝色雪狐
    2023-10-22

    map组件

    circles 是一个Array类型,

    Array中每个元素是对象类型,

    示例:

    circles : [
    {latitude:'',longitude:'',color:'',fillColor:'',radius:'',strokeWidth:'',level:''},
    {latitude:'',longitude:'',color:'',fillColor:'',radius:'',strokeWidth:'',level:''},
    {latitude:'',longitude:'',color:'',fillColor:'',radius:'',strokeWidth:'',level:''},
    ...
    ]
    
    2023-10-22
    有用
    回复
  • 〆
    发表于小程序端
    2023-10-22

    [{},{},...]

    2023-10-22
    有用
    回复
登录 后发表内容