uni-item-manage/tm-vuetify/tool/function/objToString.js
2023-10-18 15:52:41 +08:00

12 lines
259 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 把对象转换为string提供对象 和 分割符。
function objToString(obj, split=';') {
if(typeof obj !=="object") return '';
let a='';
for(let i in obj){
a+=i+':'+obj[i]+split;
}
return a;
}
module.exports.objToString = objToString;