代码如下:
<a href='javascript:eshop(1342,'asdfasfe')'><img border=0 src=img/addtocart.gif width=100 height=26></a></div><script>function eshop(id,cpname) { window.open("eshop.aspx?cpbm="+id+"&cpname='"+cpname+"'","","height=350,width=640,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
</script>
当你标签的属性使用的"时,则传参数需要使用'
当你标签的属性使用的‘时,则传参数需要使用"