上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: 今天跟朋友聊天被推荐的一个css变量使用,感觉挺方便的,适用于各种页面,类似于scss less ~好处是减少样式代码的重复性,增加样式代码的扩展性和灵活性 简单使用: <style> :root { --color:#000; --width:200px; } body { color : var 阅读全文
posted @ 2023-04-11 15:54 夏小夏吖 阅读(24) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue axios 渲染数据</title> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></scr 阅读全文
posted @ 2023-03-28 15:51 夏小夏吖 阅读(411) 评论(0) 推荐(0)
摘要: 一、使用 concat 和 filter 取出不同的元素(取出两个数组的不同元素==>既在arr1又在arr2) var arr1 = [0,1,2,3,4,5]; var arr2 = [0,4,6,1,3,9]; function getArrDifference(arr1, arr2) { r 阅读全文
posted @ 2023-03-27 16:31 夏小夏吖 阅读(2637) 评论(0) 推荐(0)
摘要: <template> <div> <h2>toRefs的使用</h2> <h3>姓名:{{ obj.name }}</h3> <h3>年龄:{{ obj.age }}</h3> <hr /> <h3>姓名:{{ name }}</h3> <h3>年龄:{{ age }}</h3> </div> </ 阅读全文
posted @ 2023-03-23 16:12 夏小夏吖 阅读(358) 评论(0) 推荐(0)
摘要: 用watch监听某个一个数组数据,获取其length时,提示Object is possibly ‘null‘ .具体如下: 解决方法如下:就是加null的判断 typescript 提示 Object is possibly ‘null‘ 的N种解决方法 解决方案一 最正确的解决方案,就是加nul 阅读全文
posted @ 2023-03-23 15:24 夏小夏吖 阅读(520) 评论(0) 推荐(0)
摘要: 首先项目集成以下两个依赖: vue-quill-editor:https://www.jianshu.com/p/8eb2bb78b641 vue-better-table:https://blog.csdn.net/sinat_27746197/article/details/105952089 阅读全文
posted @ 2021-10-22 17:25 夏小夏吖 阅读(6920) 评论(8) 推荐(1)
摘要: 请求接口后,接口返回的要是一个文件流的数据。 请示到数据之后用blob对象进行对数据处理; downloadFile(file) { dwonloadFiles({ fileName: file.name }).then(response => { let blob = new Blob([resp 阅读全文
posted @ 2021-09-16 14:21 夏小夏吖 阅读(4955) 评论(0) 推荐(0)
摘要: <template> <view class='downLoad'> <view class="ul" v-if="dataList.length>0"> <scroll-view scroll-y="true" style="height: 100vh;" @scrolltolower="hand 阅读全文
posted @ 2021-05-31 14:31 夏小夏吖 阅读(1405) 评论(0) 推荐(0)
摘要: //解决返回不刷新问题 window.onpageshow = null; window.onpageshow = function(event){ location.reload() } //跳转后的页面 window.location.href=response.data.url 阅读全文
posted @ 2021-05-10 09:30 夏小夏吖 阅读(1502) 评论(0) 推荐(0)
摘要: <template v-if="newPatient"> <div class='index'> 内容 </div> </template> <style> html,body { height: 100vh; overflow-x: hidden; overflow-y: hidden; } .i 阅读全文
posted @ 2021-04-28 18:26 夏小夏吖 阅读(771) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 18 下一页