如何使用Jquery或Javascript将HTML div元素作为图像(.png / .jpeg)下载到用户本地系统 [英] How to download HTML div element as image(.png/.jpeg) to user local system using Jquery or Javascript
本文介绍了如何使用Jquery或Javascript将HTML div元素作为图像(.png / .jpeg)下载到用户本地系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用JQuery或JavaScript将HTML div元素(带有子元素)作为图像(.png / .jpeg)下载到用户本地系统
I want to download HTML div element(with Child elements) as image(.png/.jpeg) to user local system using JQuery or JavaScript
推荐答案
你不能这样做,因为javascript没有写入本地文件系统的权限。
You can't do this as javascript doesn't have permissions to write to the local file system.
这篇关于如何使用Jquery或Javascript将HTML div元素作为图像(.png / .jpeg)下载到用户本地系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文