Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
显示Javascript库源代码而不是网页_Javascript_Html - Fatal编程技术网

显示Javascript库源代码而不是网页

显示Javascript库源代码而不是网页,javascript,html,Javascript,Html,当我转到我们网站上的一个页面时,它有时会显示导入的Javascript库的源代码,而不是页面 /*! * jQuery UI 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */(fu

当我转到我们网站上的一个页面时,它有时会显示导入的Javascript库的源代码,而不是页面

/*!
* jQuery UI 1.8.18
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
*/(function(a,b){function d(b){return!a(b).parents().andSelf().filter(function(){return
...
刷新页面似乎会让它消失,但我想知道为什么会发生这种情况,以及如何修复它?它似乎不是特定于浏览器的

更新: 源代码如下所示:

<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <script type="text/javascript" src="/jquery/js/jquery-latest.js"></script>
    <script type="text/javascript" src="/jquery/js/jquery-ui-latest.min.js"></script>
    <link type="text/css" href="/css/mainSites.css" rel="stylesheet" />

    <script type="text/javascript">
    ...//Some other JS
    </script>
    <script type="text/javascript">
    ...//Some other JS       
    </script>

</head>
<body>
    <script type="text/javascript">
       ...//Yet more
    </script>
    ...other html code
</body>
</html>

测验
…//其他一些JS
…//其他一些JS
…//还有更多
…其他html代码

您能告诉我们JS是如何包含的吗?似乎您已经在正文中添加了标签为什么?这也可能会导致问题。这看起来很好,当问题发生时,您会转到哪个页面?导入JQuery库的任何页面,但不经常且随机。