时间:formatTime(new Date()) 要定义个变量,防止数据不同步
push才能动态修改数据,只是for循环,循环的长度是固定值(list里面是map)
循环数组内容:
var dakaTimeAndLocation = this.data.dakaTimeAndLocation; dakaTimeAndLocation.forEach(item => { console.log("1132132131254564654"); console.log(item['dakaTime']); console.log(item['dakaLocation']); });