If I pass a number of selectors to jQuery, how can I differentiate the selector of each of th开发者_运维问答ose selectors as separate strings? For example:
$('#selector-a, #selector-b, #selector-c').each(function(){
console.log( $(this).selector ); // logs an empty string
});
$.each($('#selector-a, #selector-b, #selector-c').selector.split(','),
function(index, value) {
console.log(value);
}
);
精彩评论