摘要: 文件下载 window.open(url,'_self') 图片下载 点击查看代码 handleDownload(imgSrc, name){ const image = new Image(); // 解决跨域 Canvas 污染问题 image.setAttribute("crossOrigin 阅读全文
posted @ 2023-01-12 11:37 你有我备注吗 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 记录一个vue2修改数组中某一个属性的坑,注释里那种写法,时而生效时而不生效,换成红色区域部分就可监听到属性的变化 阅读全文
posted @ 2021-06-04 15:05 你有我备注吗 阅读(232) 评论(0) 推荐(0) 编辑
摘要: .leftTop { text-align: center; font-size: 18px; height: 320px; .title { font-weight: bolder; } #accident-distribution { background-color: rgba(220, 22 阅读全文
posted @ 2021-03-01 10:44 你有我备注吗 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 放大镜效果 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>放大镜效果</title> 5 <style type="text/css"> 6 .samllImg{ 7 position: relative; 8 width: 215px; 9 height 阅读全文
posted @ 2020-11-28 23:24 你有我备注吗 阅读(96) 评论(0) 推荐(0) 编辑
摘要: vue框架写的一个移动端页面,想要做一个分类展示的页面 <template> <div> <ul> <li>图文分享标题1</li> <li>图文分享标题2</li> <li>图文分享标题3</li> <li>图文分享标题4</li> <li>图文分享标题5</li> <li>图文分享标题6</li 阅读全文
posted @ 2020-11-27 16:59 你有我备注吗 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: mixin分发vue组件中的可复用功能 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1. 阅读全文
posted @ 2020-11-13 11:23 你有我备注吗 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-11-13 10:54 你有我备注吗 阅读(507) 评论(0) 推荐(0) 编辑
摘要: Vue.nextTick( [callback, context] ) 参数: {Function} [callback] {Object} [context] 用法: 在下次 DOM 更新循环结束之后执行延迟回调。在修改数据之后立即使用这个方法,获取更新后的 DOM。 // 修改数据 vm.msg 阅读全文
posted @ 2020-11-13 10:40 你有我备注吗 阅读(128) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-11-12 17:45 你有我备注吗 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 异步加载组件,在当前组件需要被加载时才会加载 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale 阅读全文
posted @ 2020-11-12 16:47 你有我备注吗 阅读(194) 评论(0) 推荐(0) 编辑