js中判斷變量不為空或null 是否有空格的方法
2018-10-17var content=$(content).val(); if(!content){ alert(請輸出內(nèi)容!); return; } //上述內(nèi)容相當(dāng)于判斷content=、content=null、content = undefined、content=0 判斷字符串是否為空 var strings = ; if (string.length == 0) { al
TOPIC