摘要:
看jquery的在线手册,hasClass的例子给的是这个html部分:jquery部分:$("div").click(function(){ if ( $(this).hasClass("protected") ) $(this) .animate({ left: -10 }) .animate({ left: 10 }) .animate({ left: -10 }) .animate({ left: 10 }) .animate({ left: 0 });});照抄过来跑了下,怎么点都没有效果。两个问题:一、没给div设置样式二、... 阅读全文
posted @ 2014-01-04 17:01
Canrz
阅读(394)
评论(0)
推荐(0)