A special problem, click the onclick method of the A tag, in the case of passing parameters, it is necessary to prevent bubbling

A special problem, click the onclick method of the A tag, in the case of passing parameters, it is necessary to prevent bubbling

Insert picture description here

event is the built-in object of the click event, you can use it directly without passing it

/**

  • Modify the current node
  • @param row 行数据
    */
    function modifyStep(row){
    event.stopPropagation();
    $(’#pro_step_add’).dialog(“setTitle”, “修改”).dialog(‘open’);
    $("#stepDept").combobox(“setValues”,row.postId);
    $("#pro_step_add_content").form(“load”, row);
    }

Guess you like

Origin blog.csdn.net/qq_26634873/article/details/106272806