成功定位坐标
This commit is contained in:
parent
82c1e640a7
commit
cb01fafe3f
5 changed files with 41 additions and 1 deletions
|
|
@ -244,6 +244,10 @@ ConversationPageState.prototype = {
|
|||
}
|
||||
return value;
|
||||
},
|
||||
getAnchorTargetY: function(id) {
|
||||
let anchorTarget = document.getElementById(id);
|
||||
return anchorTarget.getBoundingClientRect().top+document.documentElement.scrollTop;
|
||||
},
|
||||
linkClicked: function(link) {
|
||||
let cancelClick = false;
|
||||
let href = link.href;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue