<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/jquery.js"></script> <script> $(function(){ $('#btnok').bind('click',function(){ //1.empty清空内容,但步清楚元素本身 //$('li:eq(1)').empty(); //2.remove清除元素内容,同时清除元素本身 $('li:eq(1)').remove(); }); }); </script> </head> <body> <ul> <li>苹果</li> <li>西瓜</li> <li>香蕉</li> </ul> <hr /> <input type="button" id="btnok" value="删除操作" /> </body> </html>