有一个不错的插件 QR Code:“ https://github.com/lrsjng/jQuery.qrcode ”。在 Firefox 和 Chrome 中运行成功,但在 Internet Explorer 8.0 中,我在 Line 中遇到错误:
此行的消息是:“对象不支持此属性或方法”。
完整的代码是:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../jQuery/qrcode.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#qrcode').qrcode("this plugin is great");
});
</script>
</head>
<body>
<div id="qrcode" style="width:100px;height: 100px"></div>
</body>
</html>
大家有想法吗?