官網:html2canvas
- 把你要截圖的東西包在div
- 放一個下載截圖的Button
- 載入html2canvas的js
- 寫Button onclick觸發的function
- 完成啦~~~當按下Button後,瀏覽器就會自動下載圖片
Example ↓
JavaScript ref: Take screenshot of webpage with Html2Canvas
官網:html2canvas
Example ↓
JavaScript ref: Take screenshot of webpage with Html2Canvas