时间:2010-07-26 06:40:14

标签: solaris

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

尽管这个问题有时会被问到,但我将其发布出来,以便以后任何人都可以参考。

您可以使用<div id="demo"></div> <!-- this where the content would be. Create this div on different pages and embed the script inorder to get content. --> <script src="demo.js"></script> demo.js file: <script> var nav = // the content - example of bootstrap's nav '<nav class="navbar navbar-expand-lg navbar-light bg-light">'+ ' <a class="navbar-brand" href="#">Navbar</a>'+ ' <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">' + ' <span class="navbar-toggler-icon"></span>' + ' </button>' + ' <div class="collapse navbar-collapse" id="navbarNavAltMarkup">'+ ' <div class="navbar-nav">'+ ' <a class="nav-item nav-link active" href="#">Home <span class="sr-only">(current)</span></a>' + ' <a class="nav-item nav-link" href="#">Features</a>' + ' <a class="nav-item nav-link" href="#">Pricing</a>' + ' <a class="nav-item nav-link disabled" href="#">Disabled</a>' + ' </div>' + ' </div>' + '</nav>'; var demo = document.getElementById('demo'); // target element. demo.insertAdjacentHTML('beforeend', nav); // add content. </script> 命令调查此问题。但是,对于Solaris而言,必须关闭 Irix 模式才能获取真实的进程信息。在运行top工具时,按 I 切换 Irix 模式。 更多信息可以在这里找到-> How to investigate CPU utilization in Solaris