且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

猫鼬模式的对象数组

更新时间:2023-02-21 11:46:55

它看起来像这样:

mapsData: [{
    id: Number,
    name: String,
    gates: [{
        toId: Number,
        coords: {
            x: Number,
            y: Number
        }
    }],
    waypoints: [[{x: Number, y: Number}]]
}]

不确定时,总可以执行mapsData:JSON.

you can always do mapsData:JSON when you're unsure and feel things out.