nodewebkit - documentation said screen will work, but its getting impossible to make it work
- 阅读更多 关于 nodewebkit - documentation said screen will work, but its getting impossible to make it work
问题 I am using latest nodewebkit and running the following code as per documentation ( https://github.com/rogerwang/node-webkit/wiki/Screen ) but its always failing. Can anyone please tell me why i have this error please and how do you fix it? <!DOCTYPE html> <html> <body> <script> function ScreenToString(screen) { var string = ""; string += "screen: "+ screen.id; return string; } var gui = require('nw.gui'); gui.Screen.Init(); var string = "" ; var screens = gui.Screen.screens; for(var i=0;i