您的位置:首页 > 其它

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

2015-12-24 19:18 375 查看
在zepto.min.js文件中搜索animate看有没有,如果没有就是没有加入animate的模块

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

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

地址:https://github.com/madrobby/zepto
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: