Web生成二維碼的兩種方式

方式1:使用sinaapp提供的接口生成,HTML代碼如下:

<html>        
<body>          
<h3>qrcode based on sinaapp:</h3>          
<img src="http://qrcoder.sinaapp.com?t=http://www.163.com">          
</body>          
</html>

clipboard

方式1:使用sinaapp提供的接口生成,HTML代碼如下:

<html>        
<head>          
<script type='text/javascript' src='http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js'></script>          
<script type="text/javascript" src="http://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>          
<script>          
jQuery(function(){          
jQuery('#qrcode').qrcode("http://www.163.com");          
})          
</script>          
</head>          
<body>          
<h3>qrcode based on jquery.qrcode:</h3>          
<div id="qrcode"></div>          
</body>          
</html>

clipboard[1]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章