摘要: 最近要做个一个手机端的拖动效果,在网上找到一个例子,最后自己改造了一下。实现了,兼容ios android 和电脑端的 拖动效果。 小记一下主要知识点 1:与mousedown、mousemove、mouseup对应的触摸事件分别是touchstart、touchmove、touchend。 2:js 的 apply方法apply() 方法有两个参数,用作 this 的对象和要传递给函数的参数的数组。例如:function sayColor(sPrefix,sSuffix) { alert(sPrefix + this.color + sSuffix); }; var ob... 阅读全文
posted @ 2012-09-30 08:57 andy-liu- 阅读(177) 评论(0) 推荐(0) 编辑