move.js的set()没有效果
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type='text/css'>
body{
margin:0;
padding: 0;
}
.box{
width: 200px;
height: 200px;
background-color: #000000;
margin-left:200px;
}
</style>
</head>
<body>
<div class="box"></div>
<button id="btn"></button>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/move.js/0.5.0/move.min.js"></script>
<script type="text/javascript">
window.onload=function () {
document.getElementById("btn").onclick=function() {
move('.box').set('margin-left',20).end();
}
}
</script>
</body>
</html>
做了个小小的例子,发现set()怎么也没有效果,但其他就有,比如add,sub这些就有,唯独set没有???也没有报错,求解!!谢谢!!