在数值为非数字类型的引用上添加单引号
错误:
<c:forEach items="${dayList}" var= "day">
info = {title: ${day.week}, width: 80}; //报错:提示day.week is not defined
colsList2.push(info);
</c:forEach>
正确:
<c:forEach items="${dayList}" var= "day">
info = {title: '${day.week}', width: 80};
colsList2.push(info);
</c:forEach>