首页
IT
登录
6mi
u
盘
搜
搜 索
IT
关于微信title无法动态改变
关于微信title无法动态改变
xiaoxiao
2022-06-24
41
function
(title) {
var
body =
document
.
getElementsByTagName
(
'body'
)[
0
]
;
document
.
title
= title
;
var
iframe =
document
.
createElement
(
"iframe"
)
;
iframe.
setAttribute
(
"src"
,
"/empty.png"
)
;
iframe.
addEventListener
(
'load'
,
function
() {
setTimeout
(
function
() { iframe.
removeEventListener
(
'load'
)
;
document
.
body
.
removeChild
(iframe)
;
}
,
0
)
;
})
;
document
.
body
.
appendChild
(iframe)
;
}
上面的函数可以用哦 = =
转载请注明原文地址: https://ju.6miu.com/read-1123863.html
专利
最新回复
(
0
)