【发布时间】:2013-08-14 23:02:11
【问题描述】:
我正在与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();
},
【问题讨论】:
标签: javascript extjs html2canvas