
Jquery
aabbjj
这个作者很懒,什么都没留下…
展开
-
JQuery判断数组中是否包含某个元素$.inArray("js", arr);
var arr = [ "xml", "html", "css", "js" ]; $.inArray("js", arr); //返回 3,如果不包含在数组中,则返回 -1;转载 2015-01-28 09:33:16 · 495 阅读 · 0 评论 -
js jquery
1.手机动态div动态绑定长按事件 $("").html('') .bind("touchstart", function(){ tdate=new Date(); } ) .bind("touchend", function(){ var tsec=new Date()-tdate; if(tsec>1000){//超过1s则修改,否则进入详情页原创 2016-02-19 16:34:34 · 433 阅读 · 0 评论