解决钉钉内置浏览器动态显示不出来标题

const $body = $('body');
document.title = '这是要设置的标题';
const $iframe = $('<iframe style="display: none"></iframe>');
$iframe.on('load', () => {
  setTimeout(() => {
     $iframe.off('load').remove();
   }, 0);
}).appendTo($body);

 

posted @ 2019-01-07 14:25  穆清1993  阅读(1966)  评论(0编辑  收藏  举报