问题
I was looking over this case study on HTML5 drag-and-drop file download using data-downloadurl. I have a working model of this method that can download a file retrieved from the server on drop, but I am wondering if there is a way to set the data-downloadurl to download multiple files at once.
What I was thinking is something like a comma-separated list of urls like:
data-downloadurl="{$item.mime}:{$item.name}:{$item.url},
{$item2.mime}:{item2.name"}:{item2.url}
but I know this doesn't work..is there any way to do this?
来源:https://stackoverflow.com/questions/10605043/downloading-multiple-files-with-data-downloadurl