简体   繁体   English

Javascript iPhone代码可从服务器下载图像并将图像保存在iPhone内存中

[英]Javascript iPhone code to download and save image in iphone memory from server

What is the way to download and save image in iPhone memory from server in javascript?? 用JavaScript从服务器下载图像并将图像保存在iPhone内存中的方法是什么? Is it possible?? 可能吗?? Thanks 谢谢

Just create a new image element in the DOM. 只需在DOM中创建一个新的图像元素。 As you can add an onload event to the image just replace it when the the event is fired. 正如您可以向图像添加onload事件一样,只需在事件触发时将其替换即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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