摘要:
1、判断数据类型的方法 var type = function(data) { var toString = Object.prototype.toString; var dataType = data instanceof Element ? "element" // 为了统一DOM节点类型输出 阅读全文
摘要:
function price (val,types, isNoUnpin, customModel) { let type = types if(!val || isNaN(Number(val))) { if (isNoUnpin) return type ? '0':'0.00' else return type ? '0万元':'0.00元' } else { if (customModel 阅读全文