<div style="width:100px;height:100px;background: red;"></div><script>var x
{$ : function $(el){ return document.getElementsByTagName(el);
}
}
$("div")[0].style.width = "500px";</script>
這樣寫為什么不報錯?
皈依舞
2018-09-07 09:09:57