获取当前页面点击元素id

        $(document).click(function (e){
            var id=$(e.target).attr("id")
            <!--alert(id)-->

猜你喜欢

转载自www.cnblogs.com/jxfy/p/12305536.html