随笔分类 -  js

摘要: 阅读全文
posted @ 2023-08-09 14:13 212的s 阅读(28) 评论(0) 推荐(0) 编辑
摘要:copyOrderNo(orderNo){ navigator.clipboard.writeText(orderNo).then(() => { this.$message.success('已复制订单号') }); }, copyOrderNo(orderNo){ var input = doc 阅读全文
posted @ 2023-04-11 14:03 212的s 阅读(192) 评论(0) 推荐(0) 编辑
摘要://获取视频时长 if (names.indexOf('mp4') > -1) { const reader = new FileReader() const rs = reader.readAsArrayBuffer(file.file) let blob = null reader.onload 阅读全文
posted @ 2023-04-11 10:22 212的s 阅读(816) 评论(0) 推荐(0) 编辑
摘要://说明//使用场景:对接api,返回json结果,直接转换C# class//如何使用:复制下面js代码在浏览器控制台执行 ` "order_item_id": "28504637", "item_id": "3695819", "item_title": "小茵熊物料包 测试链接勿拍", "cu 阅读全文
posted @ 2021-11-12 16:09 212的s 阅读(210) 评论(0) 推荐(0) 编辑
摘要:function addScriptTag(src) { var script = document.createElement('script'); script.setAttribute("type","text/javascript"); script.src = src; document. 阅读全文
posted @ 2021-11-12 15:58 212的s 阅读(70) 评论(0) 推荐(0) 编辑
摘要:$("#父窗口元素ID",window.parent.document) window.parent.document.getElementById("父窗口元素ID") 阅读全文
posted @ 2021-11-12 15:51 212的s 阅读(231) 评论(0) 推荐(0) 编辑
摘要:var configObj = { method //数据的提交方式:get和post url //数据的提交路劲 async //是否支持异步刷新,默认是true data //需要提交的数据 dataType //服务器返回数据的类型,例如xml,String,Json等 success //请 阅读全文
posted @ 2021-11-12 15:47 212的s 阅读(34) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示