52,797
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
var n =0;
function add(xxxxx,shuju)
{
$('#tp').remove();
specElements = '<div id="tp"><font color=red>'+shuju+'</font></div>';
$(xxxxx).append( specElements );
}
</script>
<input type="button" value="add" onclick="add($('#pad'), n++)">
<div id="pad"></div>