摘要: 1、首先是先给你的每个库都建造那么一个数据库连接文件,有几个库写几个 public class firstContext : DbContext { public firstContext(DbContextOptions<firstContext> options) : base(options) 阅读全文
posted @ 2020-09-09 10:35 潇潇mini 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 当你的vue项目中出现这种报错的时候,页面肯定是显示不出来,找了半天,似乎也没发现有循环引用的呀 为啥会报内存溢出呢? 阅读全文
posted @ 2020-07-10 10:01 潇潇mini 阅读(1600) 评论(0) 推荐(0) 编辑
摘要: 1.html部分 <template> <div class="pic-zoom"> <div class="preview-box" @mousemove="move($event)" @mouseleave="out" ref="previewBox" @mouseenter="enter" > 阅读全文
posted @ 2020-07-10 09:55 潇潇mini 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 图片放大预览功能参考网站:https://github.com/mirari/v-viewer 1、安装依赖npm install v-viewer --save2、在main.js中全局引入 import Vue from 'vue'; import Viewer from 'v-viewer' 阅读全文
posted @ 2020-07-08 14:41 潇潇mini 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 主要新增如图代码: 附全部代码如下: <template lang="html"> <div class="editor"> <div ref="toolbar" class="toolbar"></div> <div ref="editor" class="text"></div> </div> 阅读全文
posted @ 2020-07-08 09:11 潇潇mini 阅读(2224) 评论(0) 推荐(1) 编辑
摘要: html代码: <vue-datepicker-local format="YYYY-MM-DD" v-model="searchData.createTimeStart" :disabled-date="disabledDate" clearable ></vue-datepicker-local 阅读全文
posted @ 2020-07-07 18:02 潇潇mini 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 1、在stateic下新增favicon.ico文件 2、修改index.html文件,如图 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, 阅读全文
posted @ 2020-06-29 09:44 潇潇mini 阅读(3484) 评论(0) 推荐(0) 编辑
摘要: 区别 localStorage: localStorage 的生命周期是永久的,关闭页面或浏览器之后 localStorage 中的数据也不会消失。localStorage 除非主动删除数据,否则数据永远不会消失 sessionStorage: sessionStorage 的生命周期是仅在当前会话 阅读全文
posted @ 2020-06-24 14:08 潇潇mini 阅读(251) 评论(0) 推荐(0) 编辑
摘要: //复制链接 copyUrl(index) { if (this.couponList[index].status == 2) { this.$sweetalert.errorAlert("警告", "该优惠券暂不可用"); return; } var id = this.couponList[in 阅读全文
posted @ 2020-06-18 11:19 潇潇mini 阅读(2215) 评论(0) 推荐(0) 编辑
摘要: Vue2的一个漂亮的日期选择器组件vue-datepicker-local,轻量化(小于5KB小型化和gzipped),仅依赖关系Vue。 npm网址: https://www.npmjs.com/package/vue-datepicker-local Demo: https://weifeiyu 阅读全文
posted @ 2020-06-11 17:50 潇潇mini 阅读(3453) 评论(1) 推荐(0) 编辑