1
我得到「對象不支持屬性或方法'最接近'」在IE中的錯誤。我正在使用MooTools。誰能幫我..IE:對象不支持屬性或方法'最接近'
var li = $$('.list')[0].clone(true, true);
var NewContainer = li.getElement('div.tile');
NewContainer.removeProperty('style');
NewContainer.set('id', 'container_'+catId);
NewContainer.closest('li').set('id', 'list_'+countID);
這個方法'li.getElement('div.tile')'返回什麼? – brk
@ user2181397:它返回具有class'tile'的html div元素 –
T.J.克勞德:你說得對。我正在使用MooTools。 –