Jan*_*ter 2 nativescript nativescript-angular
有没有办法获取元素的当前位置?它是 x 和 y。我试过了getLocationOnScreen,getLocationInWindow但结果未定义。
getLocationOnScreen
getLocationInWindow
小智 6
我认为getLocationOnScreen和getLocationInWindow应该是对象,getLocationOnScreen().x 否则.y 就可以了。
getLocationOnScreen().x
.y
归档时间:
7 年,6 月 前
查看次数:
1104 次
最近记录:
7 年,5 月 前