81,094
社区成员
发帖
与我相关
我的任务
分享
<html>
<body>
<div>
<button type="buttion" onclick=doCreate($(this))>A-0</button>
</div>
</body>
<script type="text/javascript" language="javascript">
var index = 0;
function doCreate(obj){
index = index + 1;
var html= "";
html= "<div>"
+"<button type='button' value='' onclick=doCreate($(this)) >A-"+index+"</button>"
+"<input type='text' value='' />"
+"</div>";
obj.parent().append(html);
}
</script>
</html>