小编M F*_*nga的帖子

IE11 无法判断两个字符串是否相等

无论出于何种原因,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)

jquery internet-explorer jquery-ui

5
推荐指数
1
解决办法
1514
查看次数

标签 统计

internet-explorer ×1

jquery ×1

jquery-ui ×1