嘿,为什么我的代码不适用于 jquery 版本。当 jquery 文件存在时,我的代码似乎不起作用这里是 jquery 代码:
<script type="text/javascript" src="/js/jquery-1.5.2.js"></script>
<script type='text/javascript' src="/js/jquery-1.10.1.min.js"></script>
该脚本似乎无法正确触发。这是脚本:
var timer;
$(".icon-menu-2").animate({ width: "200", "margin-right": "30", queue: false, duration: "slow"});
$(".c_right").animate({ "margin-right": "215", queue: false, duration: "slow"}, function () {
timer = setTimeout(function () {
$(".icon-menu-2").animate({ "margin-right": "-155", queue: false, duration: "slow"});
$(".c_right").animate({ "margin-right": "30", queue: false, duration: "slow"});
}, 500);
});
有谁知道为什么我的代码不被 jquery 1.5.2 和 1.10.1.min 接受?如何更正我的代码?