jQuery 引入 多个版本文件 的BUG , undefined is not an function
2014-06-29 16:24
543 查看
场景是这样的
<script src="jquery.1" ></script>
<script src="jquery.plugin" ></script>
<script src="jquery.2" ></script>
<script>
执行插件代码时 出现undefined is not an function
</script>
这是因为插件已经绑定到 jquery.1 上了
而最后执行的jquery代码的$ 实际是 jquery.2的,所以就好像 plugin没被加载进来一样
<script src="jquery.1" ></script>
<script src="jquery.plugin" ></script>
<script src="jquery.2" ></script>
<script>
执行插件代码时 出现undefined is not an function
</script>
这是因为插件已经绑定到 jquery.1 上了
而最后执行的jquery代码的$ 实际是 jquery.2的,所以就好像 plugin没被加载进来一样
相关文章推荐
- ajaxfileupload.js上传文件时jQuery.handleError is not a function的 解决办法
- jquery版本更新后无live函数的处理.TypeError: $(...).live is not a function
- Angular引入node_modules里面的css文件出错Module build failed:TypeError:URL.startsWith is not a function
- TypeError: a(...).live is not a function(jquery.unobtrusive-ajax.min.js 引入报错)
- ajaxfileupload.js结合低版本jquery报异常:TypeError: jQuery.handleError is not a function
- js提交表单bug:document.form.submit() is not a function
- jQuery.form Ajax无刷新上传报错 (jQuery.handleError is not a function) 解决办法
- jquery.form.js关于$("form").ajaxSubmit is not a function原因 .
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决[00原创]
- Backbone 或 jQuery 出错,异常:Uncaught TypeError: object is not a function
- TypeError: 'bases' is null or not an object。IE8 bug 腐朽的对象
- Warning: array_merge() [function.array-merge]: Argument #2 is not an array in e\\class\\functions.php on line 2193
- 一个分号引发的错误!——undefined is not a function
- 微软VC各版本BUG: error C2660: 'new' : function does not take 3 parameters
- Jquery $.ajax $.getJson读取本地文件的问题-Received an invalid response not allowed access(echarts本地测试地图包)
- jQuery.handleError is not a function
- js Uncaught TypeError: undefined is not a function
- 通过jquery dialog为什么提交不了form表单 和 $("#Form").ajaxSubmit(options) is not a function 的原因
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- 微软VC各版本BUG: error C2660: 'new' : function does not take 3 parameters