I just learned PHP, and then I saw that a value passed is
function doDel(id) {
if(confirm('Confirm deletion?')) {
window.location='action.php? action=mdel&w_id=' id;
}
}
I want to pass two. Can you change it based on this (I made it up below, it is wrong)
function up(id, p_id){
if(confirm('Confirmation completed?')) {
window.location='action.php?action=mcom&w_id=' id '&p_id=' p_id;
}
}
无忌哥哥2018-06-15 09:14:02
It is possible to pass multiple values, but you have to bind the value you want to pass in the click event.