我想知道实现这个目标的最佳方法是什么:
var $optionSets = $('#options').find('.option-set','#talents')..
Run Code Online (Sandbox Code Playgroud)
这不起作用.
基本上我想说要分配var $optionSets给.option-set和#talents
要在一个"查询"中实现多个选择,请用逗号分隔选择器:
$('#options').find('.option-set, #talents')
Run Code Online (Sandbox Code Playgroud)
注意:"#talents"是一个ID选择器,而不是类选择器
| 归档时间: |
|
| 查看次数: |
47 次 |
| 最近记录: |