我无法获得jQuery动画效果的工作。奇怪的是,当我添加。click函数时,它工作得很好。
谁能建议一个解决方案或工作周围得到这个效果在页面加载上运行?
$(document).ready(function() {
var image2_template = $(".image2_template");
console.log(image2_template.length);
$(image2_template).effect( "pulsate",
{times:5}, 3000 );
});
控制台返回1的值,所以。image2_template是一个对象,我不知道为什么动画不会触发。
您可能没有包含jQuery UI。