//对所有.deptTransfer-li元素遍历 $('.deptTransfer-li').each(function(index,dom){ //对所有.deptTransfer-li元素绑定点击事件 $(this).bind("click", function () { //你所需要进行的操作 var txt=$(this).html(); alert(txt); }) })