标签: nativescript angular2-nativescript nativescript-angular
有没有一种方法可以获取元素的当前位置?它是x和y。或offsetTop。我尝试了getLocationOnScreen和getLocationInWindow,但结果不确定。 我也尝试过this.el.nativeElement.offsetTop,但结果是一样的。
getLocationOnScreen
getLocationInWindow
this.el.nativeElement.offsetTop