<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div>
<div>
<div style="display: inline-block">
<a onclick="Add(this);"><button>+</button></a>
</div>
<div style="display: inline-block">
<input type="checkbox">
<input type="text" value="IP">
</div>
</div>
</div>
<script src="../../jquery-1.12.4.js"></script>
<script>
function Add(self) {
$(self).parentsUntil("outer").clone().find("a").html("<button>-</button>").attr("onclick","Remove(this);").end().eq(1).appendTo(".outer");
}
function Remove(self) {
$(self).parentsUntil("outer").eq(1).remove();
}
</script>
</body>
</html>
人生的路,就是每个人都有每个人的做法,每个人都有每个人的想法,别人做什么,想什么,我们无法掌握,也无法控制。我们能做的,就是做好自己,管好自己,凭自己的本身,靠自己的良心,踏踏实实地做事,老老实地做人,即使遭遇不公,遭遇不平,也能想开,懂得包容,学会用宽容的心怀,善良的言行,对待身边所有的人。