标签:
$(‘p‘).click(
function(){
//this表示当前被点击元素,但是此时我们当做dom对象
window.alert(this.innerHTML);
//$(this) 表示当前被点击元素,但是此时我们当做jquery对象
window.alert($(this).html());
});
标签:
原文地址:http://www.cnblogs.com/sao-di-seng/p/5391077.html