javascript的with表示什麼?

當你有一個對象的多個屬性或者方法需要操作時,就可以使用with 比如 <body> test <script type="text/javascript"> var o=document.createElement("div"); with(o){ style.cursor="pointer"; style.zIndex="100"; innerHTML="aaaa"; } document.bo
相關文章
相關標籤/搜索