更新:感谢您的意见,虽然修复程序无法正常工作。即使在我不包含kjquery.js的所有加载消息仍然打印。我真的很茫然,如果你有更多的建议,请让我知道!加载jQuery打印“加载”页
当我包含jQuery的单词“加载”打印在页面的所有内容后。我曾尝试从我自己的服务器和Google API加载它,并且两次都找到了相同的结果。
这里的页面: http://kineticaid.com/k/header.php
而这里的代码:
<?php
include('inc/functions.php');
include('inc/titles.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<link rel="stylesheet" type="text/css" href="css/headerstyle.css"></link>
<link href="http://fonts.googleapis.com/css?family=Ubuntu|Arimo|PT+Sans:700|Droid+Sans|Nobile|Ovo|Corben:700&v2" rel="stylesheet" type="text/css"></link>
<script type="text/javascript" src="js/kjquery.js"></script>
//this is the problem line
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/shadowbox/shadowbox.js"></script>
<script type="text/javascript">Shadowbox.init();</script>
</head>
<body>
<div id="container">
<div id="top">
<?php echo $quote." -".$author; ?>
</div>
很显然,我没有关闭任何标签,但这些都是在footer.php文件。头文件和页脚文件都包含在一个home.php文件中,该文件在加载时也会打印单词“loading”。
你有kjquery.js一个脚本错误:地铁5号线,缺少} – Keith 2011-12-22 22:32:36
'kjquery.js'缺少')'。 – 2011-12-22 22:33:52
“加载”消息当然不是来自jQuery本身。 – Sparky 2011-12-22 22:39:15