宗小宗-PHP程序猿

欢迎各位朋友前来,如果我的文章中有不对的地方,还望指正;如需转载,请注明原处

zepto为什么不支持animate,报animate is not a function

在zepto.min.js文件中搜索animate看有没有,如果没有就是没有加入animate的模块

 

解决办法,去github中打开src/文件夹,找到fx.js文件,把内容追加到zepto.min.js中

因为有的zepto.min.js默认只是加载一部分模块的,如果需要touch,也可以加入touch.js模块

地址:https://github.com/madrobby/zepto

 

posted @ 2015-12-24 19:18  宗小宗  阅读(4461)  评论(0编辑  收藏  举报