将参数带入网页
<br /> for(condition)<br /> {<br /> echo '<a type="button" class="print" onclick="showprint(this)添加部分;" target="_blank">打印</a>';<br /> }<br /> <br /> <script language = "javascript"><br /> function showprint(obj){<br /> obj.removeAttribute("href");<br /> obj.onclick=null;<br /> obj.style.textDecoration= 'none ';<br /> window.open("a.php?url=","_blank");<br /> }<br /> </script>