开发者

jQuery and JavaScript in Firefox 3 and IE7+

开发者 https://www.devze.com 2023-01-07 11:16 出处:网络
I\'m learning developing in javascript and jQuery. I\'m puzzled on why the firefox and IE are soo different in handling javascript and jquery functions.

I'm learning developing in javascript and jQuery. I'm puzzled on why the firefox and IE are soo different in handling javascript and jquery functions.

Firefox seems to be doing exactl开发者_如何学编程y what I want it to do, when the IE is all over the place and quite often I can't find a reasonable explanation why certain event didn't fire off or variable didn't get set.

Is there anything in particular that I should avoid while developing for these browsers?

Thank you


Really, you should avoid anything prorietary, or non-standardised. You are most likely to find this when using versions of IE, and for it to not work in Firefox rather than vice-versa.

That said, if you are using jQuery, then a lot of the cross browser concerns should be handled for you automatically. So I suspect the issues you are encountering are more related to your own code than anything else.

Can you post some samples so we can get a better idea of what might be the issue?

0

精彩评论

暂无评论...
验证码 换一张
取 消