动态添加元素的事件如果用on方法,要改成另一种写法
$(document).on('click', '#list li', function() { //function code here. });