1. jQuery .on() and .delegate() doesn't work on iPad http://stackoverflow.com/questions/10165141/jquery-on-and-delegate-doesnt-work-on-ipad 2. Click event delegation on the iPhone http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
$('.videomodule').delegate("span", "click", function() { var i = $(this).index(); //下标第一种写法 //var i = $('tit').index(this);//下标第二种写法 $(this).addClass('selected').siblings().removeClass('selected'); $('.modulelist>.moduleitem').eq(i)
方法简介: empty() This method removes not only child (and other descendant) elements, but also any text within the set of matched elements. This is because, according to the DOM specification, any string of text within an element is considered a child no