摘要:
例子1: var num = "112233.99887766";console.log(num.substring(0,(num.indexOf(".")+5)));返回:112233.9988 例子2: var item = "https://www.oss-cn-hangzhou.aliyun 阅读全文
摘要:
js: let data = “接口数据”; var myArray = {}; var funrowSpan =(data,main)=>{ myArray[main] = []; var x = ""; var count = 0; var startindex=0; for(var i = 0 阅读全文
摘要:
.clickRowStyle{background-color:#ecf6fd;} //高亮 setRowClassName(record){ if(record.orderCode == null || record.warehouseCode == null || record.operateT 阅读全文
摘要:
Url=${window.location.protocol}//${window.location.host}${window.location.pathname} 阅读全文
摘要:
1.隐藏手机号中间四位 export function formatPhone(phone){ if (typeof phone == 'number') { phone = phone.toString(); } return phone.substr(0, 3) + '****' + phone 阅读全文
摘要:
"pathname":'/interface_log', state: { itemCode: id } }); 详情获取参数:this.props.location.state.参数名 "pathname":'/interface_log', state: { itemCode: id } }); 阅读全文
摘要:
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中日期转为具体时间转 阅读全文
摘要:
最小值: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, 阅读全文
摘要:
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 阅读全文