我想問一下 小程序里面
if (max > Inductance > min) {
console.log('Inductance_max', max, Inductance, min)
temArray.push(temObj)
}
max = 1.4 inductance=0.56 min = 0.8
為什么可以到if里面去!!!???
why?
首先,這里要先說明的是,從log的內容來看,是沒有錯的。
這里出錯了,怎么解決呢
parseFloat轉換max Inductance min 再做這個比較就可以了