标签:ons 解构赋值 number style status log 赋值 color class
let jsonData = { id: 42, status: "OK", data: [867, 5309] }; let { id, status, data: number } = jsonData; console.log(id, status, number); var o = { p: 11, q: true }; var { p, q } = o; console.log(p); // 42 console.log(q); // true
标签:ons 解构赋值 number style status log 赋值 color class
原文地址:https://www.cnblogs.com/shun1015/p/11780198.html