mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 05:09:29 +08:00
v1.0.0-beta 源码正式开源
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 把对象转换为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;
|
||||
Reference in New Issue
Block a user