vui document

Class: autoscroll

自动页面滚动至某元素

Author: putaoshu@126.com.
View source: autoscroll.js.

Arguments:

vui.autoscroll (obj, time)

  1. obj - (Object) 主对象
  2. time - (Number) 页面滚动至某元素所需时间

Example:

vui.autoscroll($('#goTop'),100)