摘要:
function transformTreeData (flatArrs, parentItem) { var children = flatArrs.filter((item, index) => { return item.parentId == parentItem.id; }).map(re 阅读全文
摘要:
function formatDate(date, formatStr) { if (!date) { return '' } date = new Date(date) function $addZero(v, size) { for (var i = 0, len = size - (v + " 阅读全文
摘要:
function toQfw (dollar) { if (!isNaN(dollar)) { dollar = (dollar * 0.01).toFixed(2);//分到元 dollar += '';//转成字符串 var reg = dollar.indexOf('.') > -1 ? /( 阅读全文