HTML文件内容如下:
<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 Transition//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1">
<html xmlns = "http://www.w3.org/1999.xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>基础核心</title>
<script type="text/javascript" src="jq/jquery-1.11.2.js" > </script>
<script type="text/javascript" src="js/jichu.js"></script>
</head>
<body>
<div id="box">基础核心</div>
</body>
</html>
引入的jichu.js文件内容如下:
$(function (){
//alert($); //jQuwer对象的内部
alert($()); //返回jQuery对象
});
其中alert($())为了测试返回的jQuery对象,在firebug控制台出现如下错误:
求助错误出现原因,及解决方法??
堆栈异常
在不停的alert($());
类似死循环了~~~