aqi-city-input和aqi-value-input 是两个文本框
aqiData是数组,下面函数写的错的哪里?
function addAqiData() {
var chengshi=document.getElementById("aqi-city-input");
var zhiliang=document.getElementById("aqi-value-input");
aqiData[aqiData.lenght]="<q>"+chengshi.innerHTML+"</q>"+":"+zhiliang.innerHTML;
}
相关分类