今天在现代简明魔法 看了一篇文章 于是,自己动手试了试,
暂时了解了下jquery的方法,正好网上有个 jquery.qrcode.js 的扩展,可以拿来用 jquery.qrcode.js
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<script src="http://www.nowamagic.net/librarys/application/views/veda/js/jquery-1.6.1.min.js" type="text/javascript"></script>
<script src="http://www.nowamagic.net/librarys/application/views/veda/js/jquery.qrcode.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
/*jQuery.noConflict();
jQuery("#qrcode").qrcode({
render: "canvas",
width: 150,
height:150,
text: 'window.location.href' //任意内容
});*/
jQuery("#qrcode").qrcode({
render: "canvas", //canvas or table方式
width: 150, //宽度
height:150, //高度
text: 'http://www.nowamagic.net/' //内容
});
});
</script>
</head>
<body>
<div id="qrcode"></div>
</body>
</html>
本文介绍了如何通过jQuery和jquery.qrcode.js插件实现扫码阅读功能,详细讲述了实践过程和基本使用方法。
1927

被折叠的 条评论
为什么被折叠?



