Home >Backend Development >PHP Tutorial > 将参数带入网页,该怎么处理

将参数带入网页,该怎么处理

WBOY
WBOYOriginal
2016-06-13 12:32:30877browse

将参数带入网页

<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>


因为页面是带参数的,且在for循环中。如果是js中带参数的话就无法起到for循环的作用,如何修改才能使其带入指定参数?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn