jQuery 阻止事件冒泡

http://www.cnblogs.com/jiqing9006/archive/2012/09/11/2679831.html

function playVideo(channel){
if(channel == undefined || channel == ""){
return;
}
DPSDK.play(channel);
window.event.stopPropagation && window.event.stopPropagation();
window.event.cancelBubble && (window.event.cancelBubble = true);
}





外层div元素
内层span元素
外层div元素





你可能感兴趣的:(JavaScript)