signlist: [{ id: 0, title: ‘星期一‘, active: "" }, { id: 1, title: ‘星期二‘, active: "" }, { id: 2, title: ‘星期三‘, active: "" }, { id: 3, title: ‘星期四‘, active: "" }, { id: 4, title: ‘星期五‘, active: "" }, { id: 5, title: ‘星期六‘, active: "" }, { id: 6, title: ‘星期日‘, active: "" }, ],
let arr = that.data.signlist; for (var i = 0, len = arr.length; i < len; i++) { console.log(arr[i].active) }
原文地址:https://www.cnblogs.com/xiaozhou223/p/12701633.html
时间: 2024-10-08 20:41:04