简体   繁体   中英

How to make a download button in Next.JS

在此处输入图像描述<\/a>

Please how do I make a download button here, the method I get only open the image in a new URL. How do I make a user download it? I'm fetching the data from Pixabay

"

尝试使用这个:

<a src="Thepathofyourimage" download={true}> <button></button></a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM