我使用了一个很好的扩展来创建给定输入的QR码 - 名为 qrext.js 。
see this link for more information
此扩展程序创建Ext.Panel.panel,其中包含Ext.img元素,用于显示生成的QR。
我希望能够另存为... 作为gif,这个QR gif图像在我的电脑本地。
有办法吗?
(我知道Ext.chart.Chart例如可以选择本地保存到comupter中。)
我的示例代码:
Ext.onReady(function(){
Ext.create('Ext.Window', {
title : 'Text & QR in a window',
layout: 'fit',
width : 250,
height: 250,
plain: true,
border: 0,
autoShow : true,
defaults: {
padding: 10
},
items :[{
id: 'qr',
xtype : 'qrpanel',
textToEncode : 'this is the text that makes the QR...',
qrRenderMethod: 'gif',
qrNoClickHandler: true,
qrBlocksize : 6
}]
});
这就是结果:
感谢。