摘要: 公司有个需求需要获取到表格内的偏移量,然后跳转出去后返回回来还要回到原来的位置。如果只是普通的做法就是在mounted添加一个监听事件就行 mounted() { let element = this.$refs.plTable; element.$el.addEventListener("scro 阅读全文
posted @ 2021-07-23 16:56 凉拌 阅读(1587) 评论(0) 推荐(0)
摘要: /** * 判断变量是否空值 * undefined, null, '', false, 0, [], {} 均返回true,否则返回false */ Vue.prototype.$empty = function empty(v) { switch (typeof v) { case 'undef 阅读全文
posted @ 2019-12-10 10:49 凉拌 阅读(289) 评论(0) 推荐(0)
摘要: function Type(e){ let text = '' switch(e){ case 'application/msword': text = '.doc';break; case 'application/vnd.openxmlformats-officedocument.wordpro 阅读全文
posted @ 2019-12-10 10:46 凉拌 阅读(777) 评论(0) 推荐(0)
摘要: <template> <div class="about"> <h1 class="title">This is an about page</h1> </div> </template> <script> import '../assets/jquery-1.8.3.min.js' export 阅读全文
posted @ 2019-09-16 17:21 凉拌 阅读(5972) 评论(1) 推荐(0)