1

编辑已解决:最初我的印象是,由于可编辑代码在第二行被切断,Ace 将完全无法使用。所以我想'我们甚至不要在 IE 中加载它'。我们的错误已修复,Ace 在 9 中工作得很好(或足够接近,但不如 FF 或 Chrome 中的好)。

原始问题:我发现自己不得不阻止 Ace 编辑器在 IE 中加载,并且想知道需要检测哪些特定的浏览器功能?试图避免浏览器嗅探。

4

1 回答 1

1

Browser feature detection can't work for this, because ace already does feature detection, and when it's broken, it's broken in a rather subtle way, because of a bug in ace code, not because of missing browser features.

So the best way is either to report a bug or use browser version sniffing.

于 2013-02-12T16:59:28.640 回答