问题描述
所以第一关我学习JS也不会用一个图书馆,直到我知道我需要。
So first off I am learning JS and will not use a library until I know all I need to.
http://www.tombarrasso.com/search/
随着中说,为什么在地球上我的code不能与LT工作; IE 7,火狐< 3,等?Safari 4的是完美的,火狐3.5是伟大的,等等。我使用从罗伯特·尼曼功能getElementsByClassName方法。
With that said why on earth does my code not work in < IE 7, Firefox < 3, etc?Safari 4 is perfect, Firefox 3.5 is great, etc.I am using the function getElementsByClassName from Robert Nyman.
这不会产生错误在我的IE 6在OS X(通过酒)。AJAX请求是好的,但应该有id为一和class =卷轴初始股利,但是没有。我刚开始很沮丧与此有关。
It generates no errors in my IE 6 on OS X (through Wine).The Ajax request is fine, but there should be an initial div with id="one" and class="scroller", but there is not.I am just getting so frustrated with this.
谢谢
- 汤姆
推荐答案
就个人而言,我只想使用jQuery,因为它已经在运行之中。浏览器兼容性问题
Personally, I would just use jQuery, as it already has the browser-compatability problems you are running into.
这是所有罚款,学习这一切;但是,当涉及到处理实现兼容性,最好把它处理为你,恕我直言。只是有一些事情我不关心:P
It's all fine to learn it all; but when it comes to handling implementation compatability it's better to have it dealt with for you, IMHO. There are just some things I don't care about :P
这篇关于IE浏览器的Javascript和getElementsByClassName方法问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!