exportfunctiontestHead(data, font){if(data.length <=3){return140}let lengths
const length = data.replace(/[^\x00-\xff]/gi, font).length
const actual =(length * font)/2+60
lengths = actual >=80? actual :80return lengths
}
判断是否为空
/**
* @description: 判断当前值是否为空
* @param {*} val
* @param type
* @return {*} true为非空,false为空
*/exportfunctionisValueEmpty(val){let value = val
if(myTypeof(val)==='array'){
value = val[0]|| val[1]}return!(
value ===''||
value ===undefined||
value ==='undefined'||
value ===null||
value ==='null')}