为了账号安全,请及时绑定邮箱和手机立即绑定

有大佬知道,关于target.find()是什么意思?

有大佬知道,关于target.find()是什么意思?

眼眸繁星 2021-06-16 16:11:41
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条经验 获得超6个赞

·就是你获取到的具体节点对象后.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的节点对象$('#tt').tree('select', node.target);//选中该节点[/mw_shl_code]

查看完整回答
反对 回复 2021-06-21
  • 1 回答
  • 0 关注
  • 385 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信