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
相关文章
相关标签/搜索