Taogen's Blog

Stay hungry stay foolish.

  • Home
  • About
  • Tags81
  • Categories79
  • Archives212
  • Search
  • Table of Contents
  • Overview

Taogen

212 posts
79 categories
81 tags

Download Static Files in Modern JS

Posted on 2021-06-11 Edited on 2025-07-14 In Web Frontend , JS Frameworks
  1. Put files into /public directory

  2. Write your download link

Download /public/pdf/instruction.pdf

<a href="/pdf/instruction.pdf" download>download instruction</a>

Preview and download /public/pdf/instruction.pdf

<a href="/pdf/instruction.pdf" target="_blank">download instruction</a>
# JS
Communication between Components in Vue.js
How to Access the Correct this Inside a Callback
© 2025 Taogen
Powered by Hexo & NexT.Gemini
0%