我试图通过 window.location 传递数据,数据在 del(id,img,album) 中可用。
我想通过 window.location 发送多个值
window.location="save.php?type=deldownload&album="+album&id="+id;
但这不起作用,但下面的代码可以工作。
function del(id,img,album){
var where_to= confirm("Do you really want to delete "+img+" image");
if (where_to== true)
{
window.location="save.php?type=deldownload&id="+id;
}
else
{
alert('Ok! You Can continue with this Album');
}
}
请告诉我们真正的问题是什么。
你漏掉了几句引言
window.location="save.php?type=deldownload&album="+album+"&id="+id;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)