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]

你可能感兴趣的:(接口,二维码,border,target,blank)