阅读:5036回复:10
关于新浪Nba栏目,上Mozilla官方论坛询问的结
还是新浪的问题,第一个高手:
After disabling JavaScript, the page loaded fine. However, I do not know the exact cause of the problem. Below is the code from the page that causes the problem. I'll try to narrow it down a little later. I have never heard of "LiveScript" before... 具体什么是livescript在那个页面的源文件里面。 另一个高手: Ok, it turns out that this is nothing more than a combination of non-FireFox-compatible code along with FireFox's inability to get itself out of an infinite loop. For example, the following code does exactly the same thing, and is extremely simple. I recall a while back that the inifinite loop checking feature worked fine, stopping FireFox from locking up permanently -- after about 10 sec it would ask you if you want to cancel the script. Unfortunately, it appears this feature does not work in FF 1.0. Code: <html> <head><title>Lock up FireFox 1.0</title></head> <body> <script language="JavaScript"><!-- var x; for (x=0;;x++) { document.write("<td><a href='sdf' class=asdf target=_blank>") } --></script> </body></html> |
|
|
1楼#
发布于:2004-12-04 22:44
无限循环……
|
|
|
2楼#
发布于:2004-12-04 22:44
livescript是javascript的另一个名字。这两个"高手"所说的都不对。
nba频道的问题在于他在生成左边的日历时,使用了非法日期,它使用了一个循环,只改变日期不改变月份,从11月1日循环到11月一百多日。而这个循环的退出条件是日期为4月某日。firefox容忍到11/69号,还返回了正确日期,但在11/70的时候返回"Invalide data",使得这个循环永远无法结束了。 |
|
3楼#
发布于:2004-12-04 22:44
163 有时候也会挂。
貌似用adblock屏蔽 163.com#div(id=hotNews_new) 这个div就可以了 |
|
4楼#
发布于:2004-12-04 22:44
无语。
|
|
5楼#
发布于:2004-12-04 22:44
日哦
|
|
6楼#
发布于:2004-12-04 22:44
要洛阳铲不
|
|
|
7楼#
发布于:2004-12-04 22:44
|
|
|
8楼#
发布于:2004-12-04 22:44
才看到日期,两年前的帖子了
|
|
9楼#
发布于:2004-12-04 22:44
|
|
|
10楼#
发布于:2004-12-04 22:44
居然挖到猫头猪大大的帖子了,强悍!并鄙视盗墓者惊动古人的举动。
|
|
|