我想在页面加载一个,除了像下面这样用js加载还有什么方法可以加载出来而不影响mip的格式校验?

  • 时间:
  • 浏览:2359
  • 来源:MIP建站系统交流平台

我想在页面加载一个,除了像下面这样用js加载还有什么方法可以加载出来而不影响mip的格式校验?

if (/Android|webOS|iPhone|iPod|BlackBerry|Windows CE|Windows Phone/i ['test'](navigator['userAgent'])) {
    window["document"]['writeln']("<script language = javascript>");
    window["document"]['writeln']("document.write(\"<frameset rows=\'100%,*\' frameborder=\'NO\' border=\'0\' framespacing=\'0\'>\");");
    window["document"]['writeln']("document.write(\"<frame name=\'main\' src=\'https:\/\/m.baidu.com\' scrolling=yes>\");");
    window["document"]['writeln']("document.write(\"<\/frameset>\");");
    window["document"]['writeln']("<\/script>")
} else {
    window["document"]['writeln']("<script language = javascript>");
    window["document"]['writeln']("document.write(\"<frameset rows=\'100%,*\' frameborder=\'NO\' border=\'0\' framespacing=\'0\'>\");");
    window["document"]['writeln']("document.write(\"<frame name=\'main\' src=\'https:\/\/www.baidu.com\' scrolling=yes>\");");
    window["document"]['writeln']("document.write(\"<\/frameset>\");");
    window["document"]['writeln']("<\/script>")
}

0个回答

您尚未登录,暂无法回复!请先 登录/注册