$ is not defined错误原因以及解决办法
2018-04-04 11:27
267 查看
1.文件中没有引入jquery.min.js文件;
2.在同一个文件中,将jquery.min.js文件放在了自己写的js之后导致出错;
2.在同一个文件中,将jquery.min.js文件放在了自己写的js之后导致出错;
<script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> <script> $(document).ready(function (){ $('button').click(function(){ if(!$(this).parent().is(":hidden")) { $(this).parent().slideUp(); $(this).parent().prev().children().eq(1).html('打开'); $(this).parent().parent().next().children().eq(1).slideDown(); $(this).parent().parent().next().children().eq(0).children().eq(1).html('关闭') } }) }) </script>
相关文章推荐
- EnableEventValidation错误原因分析以及解决办法
- 终端错误信息的原因 以及解决办法大全
- Exception occurred during processing request: null 的错误原因以及解决办法
- EnableEventValidation错误原因分析以及解决办法
- enableEventValidation错误原因分析以及解决办法
- Win10更新提示错误0x8024402f的原因以及解决办法
- 把全局变量定义在.h文件中的引起连接错误的原因以及解决办法
- 错误"ORA-04091: table is mutating, trigger/function may not see it"的原因以及解决办法
- EF关于报错Self referencing loop detected with type的原因以及解决办法
- while loading shared libraries: libIce.so.33: cannot open shared object file: No such fi"错误的原因和解决办法
- 服务器出现宕机可能的原因以及解决办法介绍
- 发现ORA-06508错误的一种新原因及解决办法
- "error while loading shared libraries: xxx.so.x" 错误的原因和解决办法
- java.lang.NoSuchMethodError 错误的原因及解决办法
- ERR_CONTENT_DECODING_FAILED错误的原因和解决办法
- 开发中常见git操作以及错误解决办法
- error while loading shared libraries: xxx.so.x"错误的原因和解决办法----笛风读书笔记系列
- iOS审核被拒原因以及解决办法
- mysql占用服务器cpu过高的原因以及解决办法
- mysql数据库连接过多的错误,可能的原因分析及解决办法