var turn = function(target,time,opts){target.find('a').hover(function(){$(this).find('.class_01').stop().animate(opts[0],time,function(){$(this).hide().next().show();$(this).next().animate(opts[1],time);});},function(){$(this).find('.info').animate(opts[0],time,function(){$(this).hide().prev().show();$(this).prev().animate(opts[1],time);});});}想讓鼠標懸停改成鼠標點擊,target.find('a').hover改成target.find('a').click沒用
1 回答

達令說
TA貢獻1821條經(jīng)驗 獲得超6個贊
·就是你獲取到的具體節(jié)點對象后.target就可以了,其實你仔細看API都可以看懂的:如果是對于tree插件 find方法的描述[mw_shl_code=javascript,true]Find the specifed node and return the node object. Code example:// find a node and then select itvar node = $('#tt').tree('find', 12);//找到id值為12的節(jié)點對象$('#tt').tree('select', node.target);//選中該節(jié)點[/mw_shl_code]
添加回答
舉報
0/150
提交
取消