// 待处理数据let arrData = [{name: 'A4', num: '4'},{name:'A2', num:'2'},{name...
姓名 function sub(str){ if(typeof str == 'string'){ let ruten = str....
/** * floatOPS 包含加减乘除四个方法,能确保浮点数运算不丢失精度 * * 我们知道计算机编程语言里浮点数计算会存在精度丢失问题(或...
function isObject (obj) { return obj !==null &&typeof obj ==='object' }
// 对字符串进行加密function compileStr (code) { var c = String.fromCharCode(code...
function dateFormat (date, fmt = 'yyyy-MM-dd') { if (!date) { return ...
let getArrIndex = function(arr, obj) {let index = null;let key = Object....
function (string) {return (string || 0).toString().replace(/(\d)(?=(?:\d...
function getQueryString(name){ var reg = new RegExp("(^|&)" + name + "=...