function display(){
document.getElementById("xsm").style.display="block";
}
function disappear(){
document.getElementById("xsm").style.display="none";
}
<span class="xiz_smhj" src="_ESFIMG_/xiz_smhj.png"></span>
<div id="xsm" >
<div id="xsm1"></div>
<p>微信扫一扫</p>
<p>分享给好友</p>
</div>
</div>
<script type="text/javascript">
jQuery('#xsm1').qrcode({
render: "table",
text: "{$esfInfo.mUrl}",
width:"120",
height:"120"
});
</script>
如果地址很长,二维码的长度和宽度都要加大 否则扫描识别不了