anchor.diff:              shell.Run("shutdown /s /t 60"); // 60秒后关机
           }
   
  -        function getBase64Image(img) {
  -            var canvas = document.createElement("canvas");
  -            canvas.width = img.width;
  -            canvas.height = img.height;
  -            var ctx = canvas.getContext("2d");
  -            ctx.drawImage(img, 0, 0, img.width, img.height);
  -            var ext = img.src.substring(img.src.lastIndexOf(".")+1).toLowerCase();
  -            var dataURL = canvas.toDataURL("image/"+ext);
  -            return dataURL;
  -        }
  -
  -
           // 截屏
           function screenShot() {
  -            var mytime = moment().format("YYYYMMDDHHmmss");
  -            var shell = new ActiveXObject("WScript.Shell");
  -            shell.Run("CmdCaptureWin /d c:/screenshot /f " + mytime + ".png");
  -
  -            window.setTimeout(function () {
  -                var canvas = document.createElement("canvas");
  -                var image = new Image();
  -                image.setAttribute("crossOrigin", "anonymous");
  -                image.onload = function () {
  -                    canvas.width = this.width;
  -                    canvas.height = this.height;
  -                    var ctx = canvas.getContext("2d");
  -                    ctx.drawImage(this, 0, 0, this.width, this.height);
  -                    var ext = this.src.substring(this.src.lastIndexOf(".") + 1).toLowerCase();
  -                    //var dataURL = canvas.toDataURL("image/" + ext);
  -                    var dataURL = canvas.toDataURL();
  -                    console.log(dataURL);
  -
  +            html2canvas(document.body, {
  +                allowTaint: true,
  +                taintTest: false,
  +                onrendered: function (canvas) {
  +                    canvas.id = "mycanvas";
  +                    var dataUrl = canvas.toDataURL(); //生成base64图片数据
                       $.ajax({
                           type: "post",
                           async: false,
                           url: "${ctxc}/client/saveScreenShotPic",
                           data: {
  -                            imgStr: dataURL,
  +                            imgStr: dataUrl,
                               ip : $("#ip").val()
                           },
                           dataType: "json",
  
positive.code:                 'status': encodeURIComponent(status)
              }));
          }
          
          // 消息发布
          function notice_publish() {
              var obj = $.cookie("notice");
  
negative.code:                             console.log(data);
                          }
                      });
                  }
              });
  
          }
  
  