标签:io ar sp on bs cti ad amp as
$(‘#LocalLife_PopUp_layer‘).find(‘.SelectCity_Cont ul‘).click(function(e){
var e=e||window.event;
var obj=e.target||e.srcElement;
$(‘#LocalLife_PopUp_layer‘).find(‘.SelectCity_Cont ul‘).find(‘i‘).removeClass("Selectmark");
$(obj).find("i").addClass("Selectmark");
var CityVal = $(obj).text();
$(‘#DuohuiReturn_Nav‘).find("li:first").find("em").text(CityVal);
ShowHide();
return false;
})
var e=e||window.event;
if(e&& e.stopPropagation()){
e.stopPropagation();
}else{
e.cancelBubble = true;
}
js实现冒泡事件,点击ul给子标签添加相同事件和阻止冒泡事件
标签:io ar sp on bs cti ad amp as
原文地址:http://www.cnblogs.com/dearxinli/p/4151461.html