Mobile vue project, hiding the top address bar and the bottom toolbar

use vue as a mobile h5 page project. To achieve a similar full-screen effect, remove the address bar and bottom toolbar of the mobile browser

<meta name="browsermode" content="application">
<meta name="full-screen" content="yes" />
<meta name="x5-fullscreen" content="true" />
<meta name="x5-page-mode" content="app" />
<meta name="360-fullscreen" content="true" />
The

project is in single-page mode, so it"s good to enter it for the first time. There are no address bars and toolbars, but as long as the path jumps, navigation bars and toolbars will appear. Manual refresh will be hidden again.
I can"t do it even if I try to implement it in js scrollTop.
Why did this happen? is there any way to solve it?

May.20,2022

refer to this article to see https://blog.csdn.net/hbcui19...


try this demo


</head>

<body>
  <div>123321</div>
  <script>
    //
    function requestFullScreen() {
      var de = document.documentElement;
      if (de.requestFullscreen) {
        de.requestFullscreen();
      } else if (de.mozRequestFullScreen) {
        de.mozRequestFullScreen();
      } else if (de.webkitRequestFullScreen) {
        de.webkitRequestFullScreen();
      }
    }
    //
    function exitFullscreen() {
      var de = document;
      if (de.exitFullscreen) {
        de.exitFullscreen();
      } else if (de.mozCancelFullScreen) {
        de.mozCancelFullScreen();
      } else if (de.webkitCancelFullScreen) {
        de.webkitCancelFullScreen();
      }
    }
    document.body.addEventListener('click', function () {
      requestFullScreen();
      //exitFullscreen();
    }, false);
  </script>
</body>

</html>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48540-59cf4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48540-59cf4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?