Home > Backend Development > PHP Tutorial > JS中怎么把这两堆字体连接在一块显示到文本框

JS中怎么把这两堆字体连接在一块显示到文本框

WBOY
Release: 2016-06-23 13:20:33
Original
1131 people have browsed it

JS中怎么把这两堆字体连接在一块显示到文本框   ,想要的结果 http://localhost/zc.php?id=31

<?phperror_reporting(E_ALL || ~E_NOTICE);$str="31";$result=mysql_query("select * from ot_user where UE_account=$str"); while($rs=mysql_fetch_array($result)){?><script type = "text/javascript">        window.onload = function(){         var oTextbox1=document.getElementById("zhxm");;		 var oTextbox1=document.getElementById("zhxm");;         oTextbox1.value="echo http://localhost/zc.php?id="."<?php echo $rs['UE_ID'] ?>";  //贬值给文本框 		 oTextbox1.readOnly = true;   //文本框不可选        }		 	</script>
Copy after login


回复讨论(解决方案)

js连接是用+号。和java一样

js用“+”号把字体连接在一起。

oTextbox1.value="http://localhost/zc.php?id=<?php echo $rs['UE_ID'];?>";//贬值给文本框 
Copy after login

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template