$("ul li").click(function() { window.location=$(this).find("a").attr("href"); return false;});//该片段来自于http://www.codesnippet.cn/detail/27112012682.html
来源: http://www.codesnippet.cn/detail/27112012682.html