html事件传送htmlDom
1.在事件定义好传入参数,参数支持普通参数和当前对象this:
οnclick="reduceonetocart('@dt_mycart.Rows[i]["card_id"].ToString()',this)"
2.在接收的事件:
function reduceonetocart(cartid,thisdom)
{
$(thisdom).val();
οnclick="reduceonetocart('@dt_mycart.Rows[i]["card_id"].ToString()',this)"
2.在接收的事件:
function reduceonetocart(cartid,thisdom)
{
$(thisdom).val();
}