scroll 语句怎么写?

Nov 16, 2021, 5:11:01 PM

scroll

滚动屏幕。返回值为boolean。
参数:
参数名类型默认值说明
directionstring必填滚动方向,up向上滚动,down向下滚动
optionsjson object{root: null, type: 1, distance: 0.8, duration: 500, beforeWait: 0, afterWait: 0}root表示滚动的控件,如果为null则表示使用手势全局滚动。type表示滚动类型,1手势滚动,2使用系统翻页,3表示先使用系统翻页再立马使用手势滚动。distance表示每次滑动的距离,取值(0-1],1表示整个控件高度。duration表示完成滚动的时间,单位:毫秒。其它选项如上。



这个要写成什么样子? 

scroll(down,{root: null, type: 1, distance: 0.8, duration: 500, beforeWait: 0, afterWait: 0})  这样对吗?

发表评论
最新评论
商务合作QQ:2231485359
Copyright © 2021-2024 冰狐智能辅助. All rights reserved. 浙ICP备15043866号-4 《冰狐智能辅助服务协议》