下面的语句怎么写
if ($('#SelectedItems option[value=' + optionData.Value + ']').length === 0) ;
使用变量
var selectedItems = $('#SelectedItems');
//Something like this but not exactly
if ($(**selectedItems** + "option[value=' + optionData.Value + ']").length === 0) ;