随笔分类 -  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 阅读全文
posted @ 2023-04-27 15:54 不积跬步无至千里 阅读(324) 评论(0) 推荐(0)
摘要:<style> *{ -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:non 阅读全文
posted @ 2022-06-13 13:51 不积跬步无至千里 阅读(28) 评论(0) 推荐(0)
摘要:作为字符串形式:"+变量+";如果外面有引号,则如下:'"+变量+"'或 \""+变量+"\" 例:其中的 res.image_name 为超链接 <span class='move' onclick='move(this,"+ index +",\""+ res.image_name +"\")' 阅读全文
posted @ 2021-08-13 17:42 不积跬步无至千里 阅读(532) 评论(0) 推荐(0)
摘要:https://www.17sucai.com/pins/demo-show?id=36641 阅读全文
posted @ 2021-08-13 17:33 不积跬步无至千里 阅读(56) 评论(0) 推荐(0)
摘要:var myfile = dataURLtoFile(imgUri, Date.now() + '.png'); var formFile = new FormData(); formFile.append('file', myfile); //上传服务器 $.ajax({ url: '/index 阅读全文
posted @ 2020-06-18 09:51 不积跬步无至千里 阅读(1002) 评论(0) 推荐(0)
摘要:1. imgUri:base64文件流 function putb64(imgUri){ /*picUrl用来存储返回来的url*/ var picUrl; var pic = imgUri.substring(31);//截取掉逗号之前的内容 var url = "https://up.qiniu 阅读全文
posted @ 2020-06-18 09:05 不积跬步无至千里 阅读(455) 评论(0) 推荐(0)
摘要:1:js控制 $().removeAttr('onclick');//移除事件 $().attr('onclick','test(this)');//添加事件 阅读全文
posted @ 2020-03-20 17:01 不积跬步无至千里 阅读(152) 评论(0) 推荐(0)