github用户<a>

时间:2018-07-16 10:34:10

标签: html anchor

I tried to make custom file name for user to download, however I can't seem to use ${} with it.

What I'm trying to achieve is:

let foo = "name"
let fileName = `${name}footer.html`
<a download={filename} className="btn btn-info">Download</a>

Also this wont work:

<a download=`${name}footer.html` className="btn btn-info">Download</a>

What am I missing?

1 个答案:

答案 0 :(得分:-1)

 ___________________
| User_Id | Post_Id |
|___________________|
|   15    |   288   |
|   185   |  14358  |
|   185   |   3855  |
|_________|_________|