一行代码解决 先用选择器找到最后一个li然后.remove ok 效果图: 代码: <script> $(function () { $(":input").on("click",function () { $('li:last').remove(); }) }) 具体代码 : ❥(^_-)