会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
单眼皮男生
博客园
首页
新随笔
联系
管理
订阅
1
2
3
下一页
2019年9月11日
vue filters 金额转中文大写
摘要: capitalAmount(amount: any) { // 汉字的数字 const cnNums = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"]; // 基本单位 const
阅读全文
posted @ 2019-09-11 19:23 单眼皮男生
阅读(2435)
评论(1)
推荐(0)
2019年7月17日
vue 页面添加水印 ts
摘要: "use strict"; // tslint:disable-next-line: only-arrow-functions const setWatermark: (str: any) => any = function(str: any) { const id: string = "1.234
阅读全文
posted @ 2019-07-17 16:34 单眼皮男生
阅读(1045)
评论(0)
推荐(0)
2019年3月13日
element-ul InputNumber 空白
摘要: if(this.days == undefined){ this.$nextTick(function(){ this.days = 1; }); } if(this.days == undefined){ this.$nextTick(function(){ this.days = 1; });
阅读全文
posted @ 2019-03-13 15:13 单眼皮男生
阅读(314)
评论(0)
推荐(0)
vue v-dialogDrag: 弹窗拖拽
摘要: Vue.directive('dialogDrag', { inserted:function(el) { const dragDom = el.querySelector('.jsPropupLayerHead'); dragDom.style.cursor = 'move'; dragDom.o
阅读全文
posted @ 2019-03-13 15:10 单眼皮男生
阅读(8504)
评论(0)
推荐(0)
2018年11月5日
vue 自定义日历组件
摘要: <template> <div class=""> <div class="calendarTraffic" name="CalendarTraffic"> <!-- 年份/月份 流量查询--> <div class="monthHeader"> <!--绑定click事件,点击按钮;重新刷新当前日
阅读全文
posted @ 2018-11-05 14:20 单眼皮男生
阅读(3098)
评论(2)
推荐(0)
2018年11月1日
vue 使用Echarts 环形图 自定义legend formatter 富文本标签
摘要: main.js 引入echarts // 引入echarts import Echarts from 'echarts' Vue.prototype.$echarts = Echarts <template> <div> <!-- 为ECharts准备一个具备大小(宽高) --> <div id="
阅读全文
posted @ 2018-11-01 16:49 单眼皮男生
阅读(18540)
评论(0)
推荐(0)
2018年10月8日
模糊查询防抖,多次查询结果返回数据不一致,网络慢只返回最后一条查询结果
摘要: //定义keyup次数和方法执行次数 var _num = 1; var _flag = 1; $('#input').on('keyup', function (e) { var _key = $.trim($(this).val()); var _this = $(this); if (e.ke
阅读全文
posted @ 2018-10-08 15:05 单眼皮男生
阅读(532)
评论(0)
推荐(0)
2017年3月15日
212
摘要: //按需加载 $('a[data-toggle = "tab"]').on('shown.bs.tab', function (e) { //debugger; if ('searchTab-tab' == $(e.target).attr("id")) { return; } $(this).fi
阅读全文
posted @ 2017-03-15 17:07 单眼皮男生
阅读(168)
评论(0)
推荐(0)
2017年3月14日
jquery滚动条插件slimScroll
摘要: 参数 width: 'auto', //可滚动区域宽度 height: '100%', //可滚动区域高度 size: '10px', //组件宽度 color: '#000', //滚动条颜色 position: 'right', //组件位置:left/right distance: '0px'
阅读全文
posted @ 2017-03-14 13:47 单眼皮男生
阅读(3666)
评论(0)
推荐(0)
2017年1月3日
JQuery筛选器全系列介绍
摘要: jQuery提供了强大的选择器让我们获取对象。在这边,我人为地将jQuery选择器分为两大部分:选择对象和筛选条件。选择对象表示要获取什么对象,筛选条件是对获取的对象进行筛选,最终留下符合某些特征的对象 1.选择对象 1).基本 ·#id 根据给定的ID匹配一个元素。例如:$("#id")·elem
阅读全文
posted @ 2017-01-03 13:45 单眼皮男生
阅读(303)
评论(0)
推荐(0)
1
2
3
下一页
公告