@@ -0,0 +1,22 @@
+/*
+ * @Description:
+ * @Autor: kindring
+ * @Date: 2021-10-29 10:28:28
+ * @LastEditors: kindring
+ * @LastEditTime: 2021-10-29 10:28:29
+ * @LastDescript:
+ */
+
+let i = [
+ {key1:'val1'},
+ {key2:'val2'},
+ {key3:'val3'},
+]
+let s = JSON.parse(JSON.stringify(i).replace(/[\{|\}]/g,'').replace(/\[/,'{').replace(/\]/,'}'))
+console.log(s);
+console.log(s.key1)
@@ -1,8 +0,0 @@
-/*
- * @Description:
- * @Autor: kindring
- * @Date: 2021-10-29 10:28:28
- * @LastEditors: kindring
- * @LastEditTime: 2021-10-29 10:28:29
- * @LastDescript:
- */