随笔分类 - js
摘要:1.<div style="z-index: 1000; position: absolute; filter: Alpha(opacity = 90); width: 100px;padding: 10px; border: 1px solid #333" id="img" align="cent
阅读全文
摘要:<style> *{ -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:non
阅读全文
摘要:作为字符串形式:"+变量+";如果外面有引号,则如下:'"+变量+"'或 \""+变量+"\" 例:其中的 res.image_name 为超链接 <span class='move' onclick='move(this,"+ index +",\""+ res.image_name +"\")'
阅读全文
摘要:https://www.17sucai.com/pins/demo-show?id=36641
阅读全文
摘要:var myfile = dataURLtoFile(imgUri, Date.now() + '.png'); var formFile = new FormData(); formFile.append('file', myfile); //上传服务器 $.ajax({ url: '/index
阅读全文
摘要:1. imgUri:base64文件流 function putb64(imgUri){ /*picUrl用来存储返回来的url*/ var picUrl; var pic = imgUri.substring(31);//截取掉逗号之前的内容 var url = "https://up.qiniu
阅读全文
摘要:1:js控制 $().removeAttr('onclick');//移除事件 $().attr('onclick','test(this)');//添加事件
阅读全文

浙公网安备 33010602011771号