English 中文(简体)
歌剧在加载我的页面两次
原标题:Opera is loading my page twice

我的页面上载了两次Opera。 第11.11版。

我在几个地方放置了一些控制台日志,以表明我的文件部分被装入的顺序,见下文。

Console Logs:

Head section
Head section
Inside my Script.js file
Inside my Script.js file
Body section
Body section
Inside jQuery(document).ready
Inside jQuery(document).ready

这是使用.shtml 和.asp 的经典页面,我用jQuery 来写我的脚本。

有没有人知道为什么歌剧团会两次登上这两页? 当Firefox、Safari、IE和Chrome都没事的时候?

如果你需要更多的信息,请问,我不知道我需要提供多少细节,以便获得一些初步建议,我希望上述建议足以开始,谢谢。


我注意到一件事是输出控制台日志的顺序。 如果页面实际装载了两次, 则该顺序不会是?

Console Logs:

Head section    
Inside my Script.js file
Body section
Inside jQuery(document).ready
Head section    
Inside my Script.js file
Body section
Inside jQuery(document).ready

因此我认为它是一个有歌剧控制台的虫子, 即“苍蝇”。

是否有人倾向于同意这一点,或有任何其他理论?

最佳回答
问题回答

暂无回答




相关问题
Get the Results of an Include in a String in PHP?

Let s say file test.php looks like this: <?php echo Hello world. ; ?> I want to do something like this: $test = include( test.php ); echo $test; // Hello world. Can anyone point me down ...

How can I sanitize my include statements?

How do I clean this so users can t pull pages outside of the local domain? <?php if(!empty($_GET[ page ])) { include($_GET[ page ]); } else { include( home.php ); } ?>

How to include files with die(); function?

file1.php and file2.php with die(); function. include.php: <? include file1.php ; include file2.php ?> file1.php <? echo included ; die(); ?> file2.php <? echo not included ;...

Use Application within Application on Android

I m writing a program for the Android Platform and I would like to implement the code of a preexisting application found here . There is a button in my application menu that says "Show Friends on Map"...

C Programming: Preprocessor, include files from macro

If I could find a way to do something similar to this, I could cut out hundreds of lines of code in my application, and dramatically increase maintainability. Anyone have any ideas? #include <...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

热门标签