1.html
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
var obj = $("#text");
$('button').click(function(){
obj.append('商品:<input type="text" name="username[]" /><br /><br />');
obj.append('价格:<input type="text" name="password[]" /><br /><br />');
});
});
</script>
</head>
<body>
<form action="index.php?r=da/da_add" method="post">
<div id="text" class="yang"></div>
<input type="submit" value="添加">
</form><button>+</button>
</body>
</html>