[摘要]image\/x\-xwindowdump)$/i;if (imgFile.length === 0) {return;}if (!rFilter.test(oFile.type)) {alert(...
image\/x\-xwindowdump)$/i;
if (imgFile.length === 0) {
return;
}
if (!rFilter.test(oFile.type)) {
alert("选择正确的图片格式!");
return;
}
oFReader.onload = function(oFREvent) {
qrcode.decode(oFREvent.target.result);
qrcode.callback = function(data) {
//得到扫码的结果
$('.result-qrcode').append(data + '<br/>');
};
};
oFReader.readAsDataURL(oFile);
},
destory: function() {
$(tempBtn).off('click');
}
};
Qrcode.init = function(tempBtn) {
var _this_ = this;
tempBtn.each(function() {
new _this_($(this));
});
};
window.Qrcode = Qrcode;
})(window.Zepto ? Zepto : jQuery);
总结
以上所述是小编给大家介绍的HTML5打开手机扫码功能及优缺点,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对PHP中文网的支持!
相关推荐:
html5唤起app的方法
用CSS3优化HTML5表单的步奏
几个很好用的HTML5移动开发框架
以上就是HTML5打开手机扫码功能及优缺点_html5教程技巧的详细内容,更多请关注php中文网其它相关文章!
网站建设是一个广义的术语,涵盖了许多不同的技能和学科中所使用的生产和维护的网站。
关键词:HTML5打开手机扫码技巧及优缺点_html5图文详细教程技巧