js 生成二维码

$(".good_info").on('click',function () {
var id = $(this).data('id');
var string = 'http://qr.liantu.com/api.php?text=https://hostname/wx.php/Good/detail?gid='+id;
layer.ready(function(){
layer.open({
type: 2,
area: ['300px', '350px'],
content: string,
title:'请使用微信扫描'
});
});
});

猜你喜欢

转载自www.cnblogs.com/pansidong/p/9205811.html