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

原文地址:https://www.cnblogs.com/xiaozong/p/5074037.html