.jquery(..)is not a function解决办法
来源:互联网 发布:java技术的web服务器 编辑:程序博客网 时间:2024/05/29 07:58
今天在做项目时,碰到了一个超奇怪的问题。我在html中的程序,跑的好好的,换成jsp在项目中跑,就一直报$ is not a function错。找了很久,试了很多,都没解决。后来,突然想到,将我引入的js文件的顺序换一下,将jquery的js文件第一个引入,别的js文件放到它后面。真的解决了问题!!!原来,在页面加载时,顺序加载引入的文件。要是jquery的js文件不是第一个被引入,那么别的js中的$.方法名就会报错。只有先引入了jquery的js文件,才能正确执行$.方法。特此备份!
0 0
- .jquery(..)is not a function解决办法
- jQuery-$ is not a function
- jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法
- jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法
- TypeError: jQuery(...).validationEngine is not a function
- jQuery.handleError is not a function
- jQuery 1.9 .live() is not a function
- jQuery—$ is not a function
- JQuery:$(...).ajaxSubmit is not a function
- jquery TypeError: $.widget is not a function
- jQuery---$(...).percentageLoader is not a function
- ajaxfileupload.js上传文件时jQuery.handleError is not a function的 解决办法
- ajaxfileupload.js的报错:jQuery.handleError is not a function 解决办法
- $.plot is not a function 和 jQuery(document)中jQuery is not a function
- TypeError: $ is not a function when calling jQuery function
- $ is not a function
- $ is not a function
- is not a function
- java继承
- Jsp 中文乱码解决
- 我的caffe学习之路<第八天>
- 二叉树的遍历——c语言
- rem布局下使用背景图片和sprite图
- .jquery(..)is not a function解决办法
- springmvc中controller注入request的线程安全问题
- 关联容器
- 查找子串,并且按字典顺序排序
- Angular指令之ng-bind-html
- python实现RDD转成聚类输入矩阵
- getWritableDatabase与getReadableDatabase的区别
- [RK3288][Android6.0] 移植笔记 --- RK818配置不正确导致无法开机调试
- hdu2087剪花布条(暴力模拟/kmp)