1. 事件绑定
var isTouch= !!navigator.userAgent.match(/AppleWebKit.*Mobile.*/), eStart = isTouch ? 'touchstart' : 'mousedown', eMove = isTouch ? 'touchmove' : 'mousemove', eEnd = isTouch ? 'touchend' : 'mouseup'; $(this).on(eEnd,function(event){ //... }}
2.$(div).load木有
var newImg = new Image(); newImg.onload=function(){ console.log("over"); } newImg.src = data.result.records[i].detail_img; $(newImg).appendTo($('.card-detail').eq(orderArr[i])); //插入到节点中还是要$()的!
3.fadeIn和fadeOut
show/hide
用css3的动画
4.delay木有
$(div).delay(1000)
这种没有