它是一个错误吗?此选择有效:
<select id="select_advsels" name="pixel_advsels" multiple>
<option>All</option><option>Mobvista (TS-126)</option>
</select>
jQuery('#select_advsels').val(['Mobvista (TS-126)']);
当 OPTION 中的两个单词被多个空格隔开时,jQuery 选择失败:
<select id="select_advsels" name="pixel_advsels" multiple>
<option>All</option><option>Mobvista (TS-126)</option>
</select>
jQuery('#select_advsels').val(['Mobvista (TS-126)']);