解决Zepto.js不支持animate报错的问题,错误信息$(...).animate is not a function
2017-10-26 14:04
1166 查看
这次移动端web项目的开发用到Zepto.js,其中一个列表项要求实现左滑删除的功能,我用到animate,但是一直报错:
后来查询发现zepto.min.js默认只是加载一部分模块,其中就没有animate的模块;
解决办法:
在github中 https://github.com/madrobby/zepto,找到fx.js文件,把内容追加到zepto.min.js中,
或者单独建一个animate.js文件引入到项目中,即可!
后来查询发现zepto.min.js默认只是加载一部分模块,其中就没有animate的模块;
解决办法:
在github中 https://github.com/madrobby/zepto,找到fx.js文件,把内容追加到zepto.min.js中,
或者单独建一个animate.js文件引入到项目中,即可!
相关文章推荐
- js错误"submit is not a function"的解决方法
- 解决sea.js引用jQuery提示$ is not a function的问题
- JS中出现“$(...).dropdown is not a function”错误的解决
- Web_JavaScript_JS表单无法重置、form.reset is not a function问题解决;
- Angularjs + Webpack 框架里,引入Bootstrap-datepicker插件时,datepicker is not a function错误的解决方法
- jQuery UI dialog插件出错信息:$(this).dialog is not a function及js引入重复解决办法
- zepto为什么不支持animate,报animate is not a function
- $ocLazyLoad懒加载的时候 加载ui-grid报错 $$animateJS is not a function
- html在chrome浏览器中调试报错: object is not a function问题解决
- chrome浏览器Uncaught TypeError: object is not a function问题解决
- js提交表单错误:document.form.submit() is not a function
- jsp引入bootstrap、bootstrap-Validator后出现xxx is not a function的问题及解决办法!
- js提交表单错误:form.submit is not a function
- 解决ajaxpro 9.2.17.1 中 this.onTimeout is not a function 的错误
- js中遇到问题 *** is not a function
- js错误: email() is not a function
- 解决文件无法上传的问题,错误信息:System.IO.DirectoryNotFoundException: Could not find a part of the path.
- JS-”Undefined is not a function“错误
- chrome浏览器Uncaught TypeError: object is not a function问题解决
- Extjs4.0中的错误"this.getFullYear is not a function"解决