+ -
当前位置:首页 → 问答吧 → livequery的无事件绑定为什么无效果 ?

livequery的无事件绑定为什么无效果 ?

时间:2009-08-26

来源:互联网

    $('table').livequery(function(){

        $('th, td', this).css('padding','3px');

    });

错在那?





[ 此帖被coolesting在2009-08-26 18:02重新编辑 ]

作者: coolesting   发布时间: 2009-08-26

答案,


$('table th, td').livequery(function(){

        $(this).css('padding','3px');

});

//原因是绑定错误, livequery正常

作者: coolesting   发布时间: 2009-08-26