我正在使用html2canvas
,在这里获取画布值:
makeScreenshot: function(button)
{
debugger;
//window.location.href = "mai lto:mail@example.org";
html2canvas(document.body, {
onrendered: function(canvas) {
document.body.appendChild(canvas);
},
width: 600,
height: 600
});
},
如何在 extjs 的某个窗口、对话框或面板中呈现它?是否有改变大小的可能性screenshot
?
我想要那样的东西!我错了……
makeScreenshot: function(button)
{
debugger;
//window.location.href = "mai lto:mail@example.org";
var screenshotHtml;
html2canvas(document.body, {
onrendered: function(canvas) {
screenshotHtml = document.body;
}
});
var win = new Ext.Window({
title: 'Screenshot',
width: 1024,
height: 640,
resizable: true,
autoScroll: true,
preventBodyReset: true,
html: screenshotHtml
});
win.show();
},