Class Index | File Index

Classes


Class $we.dom

we dom方法
Defined in: dom.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
$we.dom.getEvent()
获取当前事件的event对象
<static>  
$we.dom.getTarget(e)
获取当前事件的触发对象
<static>  
$we.dom.imageLoaded(el, cb)
判断图片是否已经加载完成,完成后执行回调
<static>  
$we.dom.scrollTo(to, time, cb)
屏幕滑动至某位置
Class Detail
$we.dom()
Method Detail
<static> {event} $we.dom.getEvent()
获取当前事件的event对象
Returns:
{event} event对象

<static> {dom} $we.dom.getTarget(e)
获取当前事件的触发对象
Parameters:
{event} e
event对象,可不传
Returns:
{dom} dom 对象

<static> $we.dom.imageLoaded(el, cb)
判断图片是否已经加载完成,完成后执行回调
Parameters:
{dom} el
元素
{Function} cb
回调

<static> $we.dom.scrollTo(to, time, cb)
屏幕滑动至某位置
Parameters:
{dom} to
滑动到的对象
{integer} time
时间
{Function} cb
回调函数

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Jan 06 2013 19:48:20 GMT+0800 (CST)