美文网首页
node截屏

node截屏

作者: adtk | 来源:发表于2018-01-09 14:04 被阅读0次

    https://www.npmjs.com/package/desktop-screenshot

    var screenshot = require('desktop-screenshot');
    
    screenshot("screenshot.png", function(error, complete) {
        if(error)
            console.log("Screenshot failed", error);
        else
            console.log("Screenshot succeeded");
    });
    

    相关文章

      网友评论

          本文标题:node截屏

          本文链接:https://www.haomeiwen.com/subject/fugwnxtx.html