【发布时间】:2012-11-22 22:10:50
【问题描述】:
刷新图片源内容并停止刷新
嗨,我有一个每秒刷新“src”属性的功能。 ,现在我想当我点击按钮停止时,它会停止间隔,另外,制作一个按钮来拍照并将其保存到计算机,如快照。
<img src="http://someurl" id="image1" class="g" />
<button id="stop">STOP!</button>
<button id="capture">capture</button>
Example 你可以在这里看到我写的东西并给我指路,谢谢。
【问题讨论】:
-
这是不可能的,你不能强迫用户下载文件,即使你做到了,它也不能在所有浏览器中工作
标签: javascript jquery