上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 46 下一页
摘要: 阅读全文
posted @ 2019-09-25 22:43 糖~豆豆 阅读(523) 评论(0) 推荐(0)
摘要: 1.删除不必要的代码和注释包括空格,尽量做到最小化文件。 2.可以利用 GZIP 压缩文件。 3.结合 HTTP 缓存文件。4.图片懒加载,滑到附近了再指定图片的地址5.利用Object.freeze()提升性能6.虚拟列表7.按需加载资源8.使用负载均衡方案9.图片编码优化,尽量使用svg和字体图 阅读全文
posted @ 2019-09-25 22:20 糖~豆豆 阅读(326) 评论(0) 推荐(0)
摘要: <template> <div class="mycanvas-container"> <vue-drag-resize :isActive = 'true'/>> <div class="left"> <p>展示视口</p> <div class="myshow"> <img :src="mysrc" alt width="100%" /> <!-- <div id 阅读全文
posted @ 2019-09-20 22:45 糖~豆豆 阅读(513) 评论(0) 推荐(0)
摘要: 本文旨在说明 设置全局异常拦截器 当网络错误时候返回前端的提示, 当网络正常的时候返回后端的提示 接下来是服务端 阅读全文
posted @ 2019-09-19 22:48 糖~豆豆 阅读(2113) 评论(0) 推荐(0)
摘要: <script> const setTimeoutToPromise = duration => new Promise(resolve => { setTimeout(resolve, duration) }) export default { data() { return { mysrc: true } }, methods: { s1(a){ console.log(a) }, s2(a) 阅读全文
posted @ 2019-09-19 22:38 糖~豆豆 阅读(301) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-09-15 23:39 糖~豆豆 阅读(180) 评论(0) 推荐(0)
摘要: main.js 组件.vue 阅读全文
posted @ 2019-09-15 22:28 糖~豆豆 阅读(3631) 评论(3) 推荐(0)
摘要: 首先,你要设计好鼠标事件处理方法,主要是鼠标左键点击,左键释放,还有鼠标移动方法其次,要了解容什么方式,画一个矩形,设计一个方法:DrawRectgle(左上角,右下角),并且要确定当调用这个方法时,要把原来已经画好的矩形清除掉(或者是根据左上,右下坐标,调整矩形的大小,这样的话,就不用清除原有的矩 阅读全文
posted @ 2019-09-09 22:22 糖~豆豆 阅读(999) 评论(0) 推荐(0)
摘要: 方法一get <a href="后端文件下载接口地址" >下载文件</a> 直接用个标签来接受后端的文件流 方法二post使用场景针对后端的post请求利用原生的XMLHttpRequest方法实现 具体实现 function request () { const req = new XMLHttp 阅读全文
posted @ 2019-09-05 22:31 糖~豆豆 阅读(993) 评论(0) 推荐(0)
摘要: import { Component, OnInit , ViewChild, OnDestroy, AfterViewInit } from '@angular/core'; import { STColumn, STPage, STComponent } from '@delon/abc'; import { Subject } from 'rxjs'; import { takeUntil 阅读全文
posted @ 2019-09-04 22:41 糖~豆豆 阅读(680) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 46 下一页
Live2D