函数名
getWindowScrollTop()
函数介绍
方法名称:获取界面当前滚动到的位置,窗体的滚动事件中获取来判断位置实现高亮菜单的功能参数说明:
返回值:
top:整数型, 获取到的位置
函数例子
local top=getWindowScrollTop()
print(top)