去评论
dz插件网

这段JS代码怎么改成移动访问跟PC访问一样

逝水年华
2024/10/25 07:56:27
  1.     var system = {        win: false,        mac: false,        xll: false    };    var p = navigator.platform;    var us = navigator.userAgent.toLowerCase();    system.win = p.indexOf("Win") == 0;    system.mac = p.indexOf("Mac") == 0;    system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);    if (system.win || system.mac || system.xll) {    var iframe_url='/404/index404.html';    $("head").html('<meta charset="UTF-8"><meta name="referrer" content="no-referrer"><title>抱歉,站点关闭</title><style>body{position:static !important;}body *{ visibility:hidden; }</style> ');    $("body").empty();    $(document).ready(function () {    $("body").html('<iframe +iframe_url+'" frameborder="0" scrolling="no"></iframe>').show();    $("body *").css("visibility", "visible");  });}