[英]Does :filter work for older versions of IE?
I've got the following line of code in my program: 我的程序中包含以下代码行:
$('input').filter(':radio').change(function() {
The problem is that some of the people using Internet Explorer have stated that it's not firing (or the routine that's inside of it is not working). 问题是某些使用Internet Explorer的人表示它没有触发(或者其中的例程无法正常工作)。 I know that JavaScript is turn on for their browser because other things are working.
我知道他们的浏览器已打开JavaScript,因为其他功能正在起作用。
Is there a known compatibility issue with IE and the above mentioned code? IE和上述代码是否存在已知的兼容性问题? I have IE9 and it's working for me.
我有IE9,它正在为我工作。 I'm loading the latest version of jQuery off Google's CDN.
我正在从Google的CDN加载最新版本的jQuery。
Not heard of any known issues with it, but you could always write it without using filter: 没有听说过任何已知问题,但是您始终可以在不使用过滤器的情况下编写它:
$('input:radio').change(function() {
// your code
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.