aタグを作って、urlを実行してあげればいいだけ
downloadByURL(url: string) {
const link = document.createElement('a')
link.download = 'result.csv'
link.href = url
link.click()
}
downloadByURL('ファイルのURL')
Go to list of users who liked
More than 3 years have passed since last update.
aタグを作って、urlを実行してあげればいいだけ
downloadByURL(url: string) {
const link = document.createElement('a')
link.download = 'result.csv'
link.href = url
link.click()
}
downloadByURL('ファイルのURL')
Register as a new user and use Qiita more conveniently
Go to list of users who liked