无论出于何种原因,false当我的所有帐户都应该返回一个条件时,它应该是真的。这只是一个简单的字符串比较;和 Chrome 做对了。
在IE开发者工具中,我在行上放了一个断点,并尝试了不同的东西。这是输出:

从中调用的代码是一个 jQueryUI 小部件。这是运行代码的完整块。如果有帮助,我可以发布整个小部件。
this.element.children('option').each(function() {
if ($(this).text() === select.val()) { // Why does this evaluate to false?!?!?
$(this).text(value)
ctl._trigger('select', event, {
item: this
});
return false;
}
});
Run Code Online (Sandbox Code Playgroud)