过去几天我一直在尝试找到使此链接中的轮子旋转的确切 js http://www.forbes.com/special-report/2013/philanthropy/top-givers.html
但我无法确定确切的 js。我加了
jquery-1.7.2.min.js、jquery.easing.1.3.js、mustache.js、jquery.event.drag-2.2.js、jquery.event.drop-2.2.js、bootsrap.js、roundabout -shapes.js, foresee.js, roundabout.js, top_givers.js, top_givers_data.js, top_givers_template.js, chartbeat.js
但它不起作用。如果有人能告诉我我究竟缺少什么。谢谢!!
最佳答案
您需要为 jQuery 添加 RoundAbout-Plugin。您可以从这里下载:http://fredhq.com/projects/roundabout/
在这里您可以找到如何使用它:http://fredhq.com/projects/roundabout/#/learn
基本上它是一个简单的无序列表,您必须从这个插件中调用 .roundabout() 方法。
<ul>
<li></li>
<li></li>
<li></li>
</ul>
然后在你的 onload() 函数中:
$('ul').roundabout();
关于jquery - 在 chrome 中单击时旋转轮子的 js 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21981067/