你能让我知道我的语法有什么问题吗?
这有效:
$("#grow").animate({height: "500px"}, "slow");
但这不起作用:
$("#grow").animate({height: "500px"}, {duration: "3000", easing:"easein"});
谢谢;
最佳答案
你的第二个参数不应该是一个对象,而是两个单独的参数,如 jQuery animate docs 中所示。
$("#grow").animate({height: "500px"}, "3000", "easein");
关于javascript - JS animate - 我的语法有问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23917022/