有时我的类(‘box.attr’)是未定义的!他们是不是更快拿到盒子的方法?
box=$('#eme:parent').parent().parent().parent();//define box
boxclass=box.attr('class');
boxnumber=boxclass.replace('b','');有时我的意思是十次中有九次这样做没有问题……
有什么线索吗?
发布于 2012-03-14 08:03:07
box = $('#eme:parent').closest("[class]");https://stackoverflow.com/questions/9694026
复制相似问题