2008年12月15日星期一

js mootools 小问题一记

test

function test(obj){
obj = $(obj);
}

当将this 传递到函数时, 需要显性的将dom对象 转换成mootools 对象, 否则会在ie6的情况下报错. ie7 firefox 正常

没有评论: