html事件传送htmlDom

html事件传送htmlDom

 1.在事件定义好传入参数,参数支持普通参数和当前对象this:
onclick="reduceonetocart('@dt_mycart.Rows[i]["card_id"].ToString()',this)" 

2.在接收的事件:
 function reduceonetocart(cartid,thisdom) 
{
$(thisdom).val();
}

-------------------------------------------------- 技术很菜却一直想做大牛!
原文地址:https://www.cnblogs.com/chinaboyzzy/p/4259042.html