已采納回答 / 我喜歡Love
自己加啊。在css中:?cite:before {? ? ? content: '';? ? ? position: absolute;? ? ? right: 7px;? ? ? bottom: 7px;? ? ? width: 0;? ? ? height: 0;? ? ? border-width: 4px;? ? ? border-style: solid;? ? ? border-color: #888 transparent transparent transparent;? ? ? tran...
2016-07-28
已采納回答 / DQJ俊逸
被調用的函數在script腳本中無論你放在哪都可以被調用的到,比如<script>add(1,2);function add(a,b){ ? ?var s=a+b; ? ?alert(s);}</script>還是<script>function add(a,b){ ? ?var s=a+b; ? ?alert(s);}add(1,2);</scritp>或者這樣<script>function add(a,b){ ? ?var s=a+b; ?...
2016-07-24
已采納回答 / 慕粉wz
這個問題問得好,也見過很多人這樣寫。我能知道的是聲明時寫length的話,只被初始化一次,如果在循環體力的話,每次都會去取length。動態改變數組的話,這個length是會改變的,放在循環體中會不會引出新的bug呢?這個有待考慮,不過一般我覺得放在循環體里面沒有什么問題,歡迎補充
2016-07-21
已采納回答 / qq_魚會淹死也能飛_03546108
id是指你指定的一個元素,而document.getElementsByTagName();方法是獲得標簽類似于li;a這條的標簽,而getElementsByTagName()得到的是類似數組的值,所以要用數組的方式調用它,比如var list=document.getElementsByTagName('li');你在調用的時候要用list[i].來調用,getElementsByName()也是一樣,是用數組的方式調用,
2016-07-07