如何使用jquery循环动画功能?我有
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script>
<script type="text/javascript">
$(document).ready(function(){
$(".b").click(function(){
var a=$(".abb");
a.animate({top:'100px',left:'400px'},"slow");
a.animate({top:'20px',left:'500px'},"slow");
a.animate({top:'500px',left:'100px'},"slow");
a.animate({top:'100px',left:'800px'},"slow");
a.animate({top:'200px',left:'100px'},"slow");
a.animate({top:'300px',left:'0px'},"slow");
a.animate({top:'600px',left:'300px'},"slow");
a.animate({top:'100px',left:'700px'},"slow");
a.animate({top:'300px',left:'100px'},"slow");
});
});
</script>
</head>
<body>
<button class="b"> click </button>
<div class="abb" style="width:100px;height:100px;background:#9F0;position:absolute;border-radius:70px;box-shadow:#000 1px 1px 3px 2px;"></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我希望上面的脚本能够持续工作.请协助
我打算开发一个电子商务网站.我正在考虑使用Wordpress CMS,以便有可用于实现电子商务功能的插件.但是对wordpress的安全性提出了质疑.我收到了很多关于在python中开发网站的建议.
任何人都可以帮助我了解python优于wordpress的优势.在python中构建网站比wordpress更好吗?