mirror of
https://github.com/Dreamer-Paul/Pio.git
synced 2024-12-25 20:10:11 +08:00
Fix: Custom Content
再次修复变量异常(this 要换成 currentTarget 啦)
This commit is contained in:
parent
244266c47f
commit
0efc8904ba
@ -217,14 +217,14 @@ var Paul_Pio = function (prop) {
|
||||
|
||||
for (let i = 0; i < el.length; i++) {
|
||||
if (item.type === "read") {
|
||||
el[i].onmouseover = () => {
|
||||
const text = this.getAttribute("title") || this.innerText;
|
||||
el[i].onmouseover = (ev) => {
|
||||
const text = ev.currentTarget.title || ev.currentTarget.innerText;
|
||||
modules.message("想阅读 %t 吗?".replace(/%t/, "“" + text + "”"));
|
||||
}
|
||||
}
|
||||
else if (item.type === "link") {
|
||||
el[i].onmouseover = () => {
|
||||
const text = this.getAttribute("title") || this.innerText;
|
||||
el[i].onmouseover = (ev) => {
|
||||
const text = ev.currentTarget.title || ev.currentTarget.innerText;
|
||||
modules.message("想了解一下 %t 吗?".replace(/%t/, "“" + text + "”"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user