给一类标签添加统一的事件
时间:2017-01-09 19:55:20
收藏:0
阅读:94
代码示例:$(‘#hh section‘).bind("touchstart",function (e) {
$(‘#hh section‘).removeClass(‘ss‘);
var i=$(‘#hh section‘).index(this);
$(‘#hh section‘).eq(i).addClass(‘ss‘).siblings().removeClass();
});
原文:http://www.cnblogs.com/zhangzihao/p/6266132.html
评论(0)