代码如下:
<html>
<head>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("hello");
});
</script>
</head><body>
<h1>hello</h1>
</body>
</html>
然后firebug报的错误是两个
missing ) after argument list
http://localhost/test/js/jquery-1.4.js
Line 6064$ is not defined
http://localhost/test/test.html
Line 8我要崩溃了 谁来救救我啊
<html>
<head>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("hello");
});
</script>
</head><body>
<h1>hello</h1>
</body>
</html>
然后firebug报的错误是两个
missing ) after argument list
http://localhost/test/js/jquery-1.4.js
Line 6064$ is not defined
http://localhost/test/test.html
Line 8我要崩溃了 谁来救救我啊
解决方案 »
- jquery操作file的change事件异步提交问题,麻烦哪个大侠帮忙下
- 哪位能告诉我这个效果怎么实现!
- fusioncharts动态更改数据问题
- Highcharts怎么获得曲线的最大值最小值?
- Js错误 TypeError:top.document.
- 请问 ,如何将全角状态下的数字替换为英文状态下的数字,在线等待中...
- 问一个字母转换的问题,谢谢指教。
- 怎么样得到某一个日期后50天的日期啊?急急急~~~~~~~~
- 如何在数据还没有传输完的时候,在前台显示等待信息!
- 关于top.close()的问题。
- 请问如何做到选择一个下拉选项而改变一个表单
- 网站引入广告网站的js文件,显示成flash广告,怎么判断用户点击了广告?
Jquery(document).ready(function(){
alert("hello");
});
</script>
这样呢?
统一改为utf-8
jQuery(document).ready(function(){
alert("hello");
});
</script>
这样j小写Q大写
<html>
<head>
<script type="text/javascript" src="http://images.5173cdn.com/5173/js/jquery-1.3.2.min.js"> </script>
<script type="text/javascript">
$(document).ready(function(){
alert("hello");
});
</script>
</head><body>
<h1>hello </h1>
</body>
</html>
没有任何问题,估计你js框架里的问题
我觉得好像是不是JS的问题 好像是Apache跟这个那里起冲突什么的了
jQuery is not defined
http://localhost/test/test.html
Line 8
missing ; after argument list
http://localhost/test/js/jquery.js
Line 2704
这样的错误 总之我觉得不是jquery的问题 因为只有放在apache下才会出问题 然后我用同事的机器上测试 代码也没问题 jquery也没问题 我知道不应该发在这里 但是发在apache那边 没人理我
就能确认问题了