这两种方法都有效,FF控制台显示它们选择了相同的元素,但是使用其中一种比另一种有任何优势吗?
From the fine manual:
$ (jQuery)view.$(selector)
[…相当于运行:
view.$el.find(selector)
所以this.$(selector)
是this.$el.find('.selector')
的简写。使用您喜欢的任何一个,它们之间没有功能差异。