已采納回答 / AnthonyYY
必然是定義了$函數(shù)的,應(yīng)該是沒(méi)定義正確看下自己是不是在參數(shù)id上多加了一對(duì)引號(hào)。return typeof id === 'string'?document.getElementById(id):id;定義$函數(shù)時(shí)仔細(xì)看括號(hào)里id是不加引號(hào)的,不知道符合你的情況嗎?
2015-02-15
最新回答 / 一模拉仨
?lis[i].onmouseover = function{這句后面少了()應(yīng)該是?lis[i].onmouseover = function (){
2015-02-14
最新回答 / 木白121
function $(id) { // body... return ?typeof ?id==='string'?document.getElementById(id):id;}window.onload =function(){ ? ? ? ? ? ? ?var ?titles=$('ontice-tit').getElementsByTagName('li');? ? ? ? ? ? ?var divs=$('ontice-con').getElementsByTagName('div');? ? ...
2015-02-13