
1 switch Jun 21, 2014 先匹配到 ul.submenu 再查找到 .submenu-header: $this.closest("ul.submenu").children("li.submenu-header").text(); |
3 paloalto Jun 21, 2014 $ul.on('click', 'span.text', function (e) { }) |
4 paloalto &nbs; Jun 21, 2014 @kstsca 1楼 给出的 $this.clesest('ul.submenu') 就是离 this 最近的那个 ul . 可以定位到的。 而且可以直接匹配 id 啊,ul#form 是唯一的嘛。 可以不用 this 的: $ul.on('click', 'span.text', function (e) { var text = $('ul#form .submenu-header').text(); $('.page-header-section .semibold').text(text); }) |
8 liyandong Jun 22, 2014 找父亲的文章儿子 |