这是我的bootbox对话框的jQuery代码。
bootbox.dialog({
message: 'Message has been generated.<br><a href=<?php echo $site_url;?>/force_download.php?file_name=../folder_path/'+msg_split[1]+'.pdf>Click Here to download label</a> <br><b>Currently generated Lable is - <font color=red>'+msg_split[1]+'</font></b>',
title: 'Response',
buttons: {
warning: {
label: "Ok",
className: "btn-success",
callback: function() {
flushWarehouseInformation();
}
}
}
});
但对我来说,href链接无法正常工作。 我怎样才能做到这一点?任何帮助将不胜感激。
答案 0 :(得分:2)
您需要在引号中正确包装您的网址。请注意单引号和双引号的开头和结尾。
REM This is the startup
start cmd.exe /k title killthis
call catalina run
答案 1 :(得分:1)
试试这个......
<a href="<?php echo $site_url;?>/force_download.php?file_name=../folder_path/'+msg_split[1]+'.pdf">Click Here to download label</a>