会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
知九
follow your heart,and to be the best!
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2019年1月23日
jsencrypt vue相关的rsa加密
摘要: vue组件引入 方法内使用 参考: https://blog.csdn.net/u013344993/article/details/79984968
阅读全文
posted @ 2019-01-23 13:35 知九
阅读(1163)
评论(0)
推荐(0)
2018年12月29日
less 循环模拟sass的for循环效果
摘要: // 输入框部分宽度 从10px到600px 相隔10像素 .generate-widths(600); .generate-widths(@n, @i: 10) when (@i =< @n) { .width@{i} { width: 0px + @i; } .generate-widths(@n, (@i+10)); } .width10 { width: 10...
阅读全文
posted @ 2018-12-29 16:01 知九
阅读(2148)
评论(3)
推荐(1)
2018年12月25日
vue 自动生成菜单
摘要: import constant from './const' export function getRouters (files) { let filenames = files.keys() let list = mapToList(filenames) let routerArr = getTree(list) return routerArr } function get...
阅读全文
posted @ 2018-12-25 15:38 知九
阅读(1483)
评论(0)
推荐(0)
vue中form 表单常用校验封装(async-validator)
摘要: 新建一个js校验文件validate.js 使用的时候在vue文件中引入该js及需要用的函数
阅读全文
posted @ 2018-12-25 15:19 知九
阅读(2647)
评论(1)
推荐(1)
2018年12月24日
JS获取树的父节点及祖先节点
摘要: 主体函数 调用方式 两种方式都可以获取到祖先节点的值
阅读全文
posted @ 2018-12-24 16:23 知九
阅读(8787)
评论(0)
推荐(1)
2018年12月21日
textarea换行符转换
摘要: /** * @description textarea换行符转指定字符 * @param str:要放到textarea的字符串 * @param code:要转换成换行的字符,默认为',' */ export const textareaToString = (str, code = ',') => { let lineFeed = '\n' let reg = new Reg...
阅读全文
posted @ 2018-12-21 18:04 知九
阅读(1097)
评论(0)
推荐(0)
iview获取全选和半选数据(方法一:基于树型数据)
摘要: 在用iview的时候发现iview的树中获取半选和全选的函数getCheckedAndIndeterminateNodes在我使用的iview版本里面是没有提供的, 于是自己写了一下获取全选和半选节点的数据 这个是最最笨的方法
阅读全文
posted @ 2018-12-21 11:39 知九
阅读(3230)
评论(0)
推荐(0)
2018年12月20日
axios导出 excel
摘要: this.axios({ methods: 'get', url: url, responseType: 'blob' }).then(res => { const blob = new Blob([res]) const fileName = '导出信息.xls' if ('download' in document.createElement('a')) { // 非...
阅读全文
posted @ 2018-12-20 17:14 知九
阅读(1239)
评论(0)
推荐(0)
vue js 格式化时间
摘要: 常用于iview日期组件时间处理
阅读全文
posted @ 2018-12-20 16:08 知九
阅读(3218)
评论(0)
推荐(0)
vue重置data
摘要: 解析:1.Object.assign() 方法用于将所有可枚举属性的值从一个或多个源对象复制到目标对象。它将返回目标对象。 Object.assign(target, …sources); 参数: target => 目标对象。 sources => 源对象。 返回值: 目标对象。 2.this.$
阅读全文
posted @ 2018-12-20 15:55 知九
阅读(888)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告