10 2019 档案
摘要:我的原因:引入组件后未注册 <script> import ComFirst from "../../components/ComFirst.vue" import ComSecond from "../../components/ComSecond.vue" export default { na
阅读全文
摘要:搬运自:https://www.cnblogs.com/wangyuanyuanlovexuanxuan/p/7767767.html html: <style> .div1{ width:200px; height:100px; overflow-y:auto; // 关键 }</style><d
阅读全文
摘要:效果: html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0
阅读全文
摘要:参考:https://blog.csdn.net/lunhui1994_/article/details/81120579 效果: html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" con
阅读全文
摘要:代码: <input type="text" placeholder="开始日期" ng-model="data_start" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/> 问题: 选择日期后,提交时,$scope.data_start始终没有值。
阅读全文
摘要:搬运自:https://www.cnblogs.com/goloving/p/9256212.html 使用<keep-alive>会将数据保留在内存中,如果要在每次进入页面的时候获取最新的数据,需要在activated阶段获取数据,承担原来created钩子中获取数据的任务。 被包含在 <keep
阅读全文
摘要:参考:https://www.cnblogs.com/goloving/p/9256212.html 1. main.js import WXConfig from '../../assets/js/wx.jsapi'; 2. wx.jsapi.js import axios from 'axios
阅读全文
摘要:参考:https://www.cnblogs.com/sophie_wang/p/7844119.html 1. 安装 npm install axios 2. main.js import axios from 'axios'; axios.defaults.timeout = 5000; //响
阅读全文
摘要:参考:https://blog.csdn.net/weixin_43851769/article/details/86505164 qs 是一个增加了一些安全性的查询字符串解析和序列化字符串的库。 步骤: 1. 安装 npm install qs 2. 在需要用到的组件中 import qs fro
阅读全文
摘要:搬运自:https://www.cnblogs.com/qq9694526/p/5653728.html 事件捕获指的是从document到触发事件的那个节点,即自上而下的去触发事件。相反的,事件冒泡是自下而上的去触发事件。 绑定事件方法的第三个参数,就是控制事件触发顺序是否为事件捕获。true,事
阅读全文
摘要:参考:https://blog.csdn.net/qq_34829447/article/details/83780392 问题:使用FileUpload插件进行文件上传时,发现无法上传与上个文件相同的文件,而且不会调用任何组件的生命周期钩子。 原因:由于没有在input标签中添加multiple属
阅读全文
摘要:参考:https://blog.csdn.net/lunhui1994_/article/details/80236315 问题:项目中对数据做了分页效果,理想是:当页数大于6时,隐藏>6的页数。点击上一页、下一页时,对应序号高亮。当前页>=6,点击下一页时,序号始终无法高亮。 原因:ng-repe
阅读全文
摘要:参考:https://blog.csdn.net/weixin_38304202/article/details/78282826 效果: 此处安装省略 vue: <div class="banner" v-show="isShowSlide"> <div class="swiper-banner"
阅读全文
摘要:官方文档:http://www.wangeditor.com/ 效果 html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>wangEditor demo</title> <style> *{ font-size:14px;
阅读全文