上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: 原因:html的加载顺序; 解析html结构 -> 加载外部脚本和样式表文件 -> 解析并执行脚本代码 -> 构造html dom模型 -> 加载图片等外部文件 -> 页面加载完毕。 所以,当html加载的时候,就会把{{}} 当成文本加载出来,当vue初始化完成后,才会把{{}}解析成vue的语法 阅读全文
posted @ 2020-08-26 11:14 夏小夏吖 阅读(1965) 评论(0) 推荐(0)
摘要: 1、扩大图表y轴间的距离,只需要将echarts组件的高度加大就行啦。如: <div class="echartDatas"> <nvechart :chartData="echartData" style="height:500px;"></nvechart> </div> 2、echarts—设 阅读全文
posted @ 2020-07-24 19:48 夏小夏吖 阅读(287) 评论(0) 推荐(0)
摘要: <style lang="scss" scoped> /* 修复input 背景不协调 和光标变色 */ /* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */ //去掉type=number 带上下箭头的问 阅读全文
posted @ 2020-07-16 19:54 夏小夏吖 阅读(1571) 评论(0) 推荐(0)
摘要: 在项目根目录下,新建名为 vue.config.js的文件或者找到vue.config.js的文件,添加hot属性即可。 module.exports = { devServer : { hot:true,//自动保存 open : true,//自动启动 port : 8080,//默认端口号 h 阅读全文
posted @ 2020-07-16 17:05 夏小夏吖 阅读(16184) 评论(6) 推荐(1)
摘要: 1、vue-element-admin的input的验证残留清除 this.$refs["from"].resetFields(); //移除校验结果并重置字段值 this.$refs["from"].clearValidate(); //移除校验结果 2、在elementUI中有时想触发el-fo 阅读全文
posted @ 2020-07-09 19:33 夏小夏吖 阅读(736) 评论(0) 推荐(0)
摘要: var params ={ a:"", b:"", c:"",} $.ajax({ type: "GET", url: 'http://xxx.com?param=' + encodeURI(JSON.stringify(params)), success: function (data) { co 阅读全文
posted @ 2020-07-03 16:10 夏小夏吖 阅读(336) 评论(0) 推荐(0)
摘要: methods: { keyBtop (){ setTimeout(function(){ document.body.scrollTop = document.body.scrollHeight; },300); }, } 阅读全文
posted @ 2020-06-29 18:41 夏小夏吖 阅读(1061) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zgrkaka/article/details/100528714 第三种方法是,通过props检验父组件传过去的方法; 阅读全文
posted @ 2020-06-29 14:49 夏小夏吖 阅读(156) 评论(0) 推荐(0)
摘要: 1、 computed: { dateRange () { const { checkindex, docName } = this return { checkindex, docName } } }, 2、 watch: { dateRange (newval,oldval){ console. 阅读全文
posted @ 2020-06-29 14:45 夏小夏吖 阅读(2731) 评论(0) 推荐(1)
摘要: //判断是IOS还是安卓 docPros appSource() { const u = navigator.userAgent; const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); if (isiOS) { // this.$util 阅读全文
posted @ 2020-06-24 15:46 夏小夏吖 阅读(715) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页