有一段语法很费解,求大神,帮我讲解一下
jquery吧
全部回复
仅看楼主
level 1
樂屠 楼主
$tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'html'
](content)
这是bootsrap中的语段代码。
为什么end方法后面可以加中括号,而且中括号后面还可以跟()
2017年07月28日 04点07分 1
1