首页 > 代码库 > Node webkit启动最大化窗口

Node webkit启动最大化窗口

<!DOCTYPE html>
<html>
<head>
   
</head>
<body>
    <p style="text-align:center;margin-top:10%;color:green;font-weight:bold;font-size:12px">正在加载中...</p>
    <script language="javascript" type="text/javascript">  
        var gui = require(‘nw.gui‘);      
        var win = gui.Window.get();
        win.maximize();
        var url = "http://www.baidu.com/";   
        win.show();
        setTimeout(function () {
            window.location.href = http://www.mamicode.com/url;
        }, 1000);
    </script>
</body>
</html>

Node webkit启动最大化窗口