上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 1. 为什么叫心跳包呢? 它就像心跳一样每隔固定的时间发一次,来告诉服务器,我还活着。 2. 什么是心跳机制? 1、心跳机制是每隔一段时间会向服务器发送一个数据包:告诉服务器(后台)自己还活着,同时客户端(浏览器)会确认服务器端是否还活着 2、如果还活着的话,就会回传一个数据包给客户端 3、服务端断 阅读全文
posted @ 2022-06-16 09:24 小兔儿_乖乖 阅读(2183) 评论(1) 推荐(0)
摘要: //div <canvas id="theCanvas" width="800" height="400"></canvas> //mounted mounted(){ cavs() { let theCanvas = document.querySelector("#theCanvas"); if 阅读全文
posted @ 2022-05-30 11:07 小兔儿_乖乖 阅读(67) 评论(0) 推荐(0)
摘要: //返回顶部 <div class="backTop" v-show="topShow" @click="topBack"> Top </div> //mounted window.addEventListener("scroll", this.handleScrollx, true); windo 阅读全文
posted @ 2022-02-24 10:51 小兔儿_乖乖 阅读(272) 评论(0) 推荐(0)
摘要: div: <div id="box"> <ul id="con1" ref="con1" :class="{ anim: animate == true }"> <li v-for="item in items" @click="onClick(item)">{{ item.name }}</li> 阅读全文
posted @ 2022-02-23 10:47 小兔儿_乖乖 阅读(205) 评论(0) 推荐(0)
摘要: 1.安装 下载 npm install vue-seamless-scroll --save 引入 import vueSeamlessScroll from 'vue-seamless-scroll components: { vueSeamlessScroll } 2.vue <vue-seam 阅读全文
posted @ 2022-02-12 15:07 小兔儿_乖乖 阅读(320) 评论(0) 推荐(0)
摘要: vue: <a-table :columns="columns" :data-source="data"> <template slot="footer" slot-scope="currentPageData"> <a-row> <a-col :span="6" align="center" v- 阅读全文
posted @ 2022-02-12 08:32 小兔儿_乖乖 阅读(1065) 评论(0) 推荐(0)
摘要: <a-date-picker v-model="queryParam.gmtCreate" show-time type="date" placeholder="请选择时间" style="width: 100%" /> // 获取当前时间 console.log(this.queryParam.g 阅读全文
posted @ 2022-02-09 16:43 小兔儿_乖乖 阅读(464) 评论(0) 推荐(0)
摘要: 注:以下方法都是依据Ant Design of Vue为参考 第一种方式(仅适用于上传,不可拿返回的数据作为参数请求接口): 因为函数作用域原因,不可以赋值给全局变量使用 ①在data中声明 customRequest:null ②vue <a-form-model ref="ruleForm" : 阅读全文
posted @ 2022-01-06 13:44 小兔儿_乖乖 阅读(749) 评论(0) 推荐(0)
摘要: 通常数据请求的方法get和post。 post请求传参,传递的参数不存在,但在请求中看得到参数,只是参数的格式是Request Payload,具体原因 :参数格式不对。 例如: this.$axios.post('/archivesManagement/file/fileDownload', { 阅读全文
posted @ 2021-12-20 13:28 小兔儿_乖乖 阅读(3347) 评论(0) 推荐(0)
摘要: <a-form-model-item label="月份" class="input"> <a-select placeholder="请选择月份" style="width: 160px"> <a-select-option value="one" v-for="(item, index) in 阅读全文
posted @ 2021-12-08 17:17 小兔儿_乖乖 阅读(376) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页