摘要: 例子1: var num = "112233.99887766";console.log(num.substring(0,(num.indexOf(".")+5)));返回:112233.9988 例子2: var item = "https://www.oss-cn-hangzhou.aliyun 阅读全文
posted @ 2019-01-14 13:42 刘丑丑鱼香肉丝 阅读(293) 评论(0) 推荐(0) 编辑
摘要: js: let data = “接口数据”; var myArray = {}; var funrowSpan =(data,main)=>{ myArray[main] = []; var x = ""; var count = 0; var startindex=0; for(var i = 0 阅读全文
posted @ 2019-06-03 14:12 刘丑丑鱼香肉丝 阅读(829) 评论(0) 推荐(0) 编辑
摘要: .clickRowStyle{background-color:#ecf6fd;} //高亮 setRowClassName(record){ if(record.orderCode == null || record.warehouseCode == null || record.operateT 阅读全文
posted @ 2019-05-06 14:40 刘丑丑鱼香肉丝 阅读(5995) 评论(0) 推荐(0) 编辑
摘要: Url=${window.location.protocol}//${window.location.host}${window.location.pathname} 阅读全文
posted @ 2019-04-08 15:36 刘丑丑鱼香肉丝 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.隐藏手机号中间四位 export function formatPhone(phone){ if (typeof phone == 'number') { phone = phone.toString(); } return phone.substr(0, 3) + '****' + phone 阅读全文
posted @ 2019-03-12 14:39 刘丑丑鱼香肉丝 阅读(114) 评论(0) 推荐(0) 编辑
摘要: "pathname":'/interface_log', state: { itemCode: id } }); 详情获取参数:this.props.location.state.参数名 "pathname":'/interface_log', state: { itemCode: id } }); 阅读全文
posted @ 2019-03-07 14:04 刘丑丑鱼香肉丝 阅读(7593) 评论(0) 推荐(0) 编辑
摘要: 1.年月转化为时间戳(13位java) let d = new Date('2019-02');console.log(d.getTime(d)); //1548979200000 2.13位(java) 11位(php、c++)一般需要除以1000取整 3.ant design中日期转为具体时间转 阅读全文
posted @ 2019-03-06 15:22 刘丑丑鱼香肉丝 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 最小值:Math.min.apply(null,arr) var arr = [1,30,4,5,6,7];var max = Math.min.apply(null,arr);alert(max); //1 最大值:Math.max.apply(null,arr) var arr = [1,30, 阅读全文
posted @ 2019-03-05 16:06 刘丑丑鱼香肉丝 阅读(190) 评论(0) 推荐(0) 编辑
摘要: function isInteger(num) { if (!isNaN(num) && num % 1 0) { return true; } else { return false; } } var a = 5.9 var isNum = isInteger(a); console.log(is 阅读全文
posted @ 2019-02-22 14:43 刘丑丑鱼香肉丝 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1.npm install -g create-react-app 2.create-react-app react-demo 3.cd react-demo 4.npm start 阅读全文
posted @ 2019-01-23 10:46 刘丑丑鱼香肉丝 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Angular4.X安装,创建 1.安装最新的nodejs(node -v ,npm -v) 2.新建文件夹(右键git bash here)npm install -g @angular/cli 3.ng new my-app(创建项目) 4.cd my-app(进入目录) 5.npm insta 阅读全文
posted @ 2019-01-23 10:25 刘丑丑鱼香肉丝 阅读(287) 评论(0) 推荐(0) 编辑