Created
May 1, 2019 09:44
-
-
Save abearxiong/4165bc81f4c56033946d02a8b25e8bc9 to your computer and use it in GitHub Desktop.
HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var link = $(link) //把元素绑定到JQuery对象 | |
//console.log(link.next()) //下一个兄弟节点 parent() ,children() | |
var downChild = link.next() | |
downChild.slideToggle() // 当点击按钮,显示或隐藏元素 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment