解决钉钉内置浏览器动态显示不出来标题
const $body = $('body'); document.title = '这是要设置的标题'; const $iframe = $('<iframe style="display: none"></iframe>'); $iframe.on('load', () => { setTimeout(() => { $iframe.off('load').remove(); }, 0); }).appendTo($body);
const $body = $('body'); document.title = '这是要设置的标题'; const $iframe = $('<iframe style="display: none"></iframe>'); $iframe.on('load', () => { setTimeout(() => { $iframe.off('load').remove(); }, 0); }).appendTo($body);