显示数字html代码

<pre id="bb"></pre>

<div style="display:none" id="m">1,2,3,4,5,6,7 </div>

<input type="button" value="显示1" onclick="type2()" />

<script language="javascript">

function type2(){

document.getElementById("bb").innerHTML = document.getElementById("m").innerHTML;

};

</script>

 

posted @ 2017-12-04 06:51  zknxy118  阅读(1247)  评论(0编辑  收藏  举报