輸入true取布爾true

"true" and true is different
<input type="text" id="start" />
function $(id){
return document.getElementById(id);
}
var start=$('start').value == "true"?true:false;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章