当按下鼠标时,图片随鼠标移动松开时图片回到原位 drag("div_id") function drag(node_id){ var node = document.getElementById(node_id); var isYes = false; document.onmousedown = function(even){ isYes = true; var e = even || window.event; node.style.left = e.clientX - 30 +
PC端将图片下载到本地saveFile(imgdata,filename){ var save_link=document.createElementNS('http://www.w3.org/1999/xhtml', 'a'); save_link.href=imgdata; save_link.download=filename; var event=document.createEvent('MouseEvents'); event.initMouseEvent('click',true,