1
我使用html2canvas插件捕获页面的屏幕截图。当我用下面的代码,它工作正常:html2canvas奇怪的问题
var target = $('body');
html2canvas(target, {
onrendered: function (canvas) {
var data = canvas.toDataURL();
}
});
中的document.ready,但使用时外喜欢的document.ready上的按钮,单击说我不断收到有关就像无法加载资源插件代理问题:服务器响应状态为404.
我遵循类似的方法。 –
好的。看看你的jQuery文件是否正确加载。 使用此[插件](https://chrome.google.com/webstore/detail/javascript-errors-notifie/jafmfknfnkoekkdocjiaipcnmkklaajd),查看您是否有任何js错误。 – joashp
如果你试图在你的答案中解释它会使它更有价值,比看到有一天链接死了,你的答案没用 –