Time:09-30
CodePudding user response:
var STR=[{" name ":" CXH ", "sex" : "man"}, {" name ":" cxh1 ", "sex", "man1"}]. //how to put in the array "H", "4", "points" to extract the log out, The log (STR)
Var STR=[{" words ", "H"}, {" words ":" 4 "}, {" words ":" points "}); Var arr=[]; STR. ForEach (e=& gt; {Object. Entries (e). ForEach (((k, v))=& gt; {Arr. Push (v); }) }) console.log(arr);//to extract the "H", "4" and "points" print log
Page link:https//www.codepudding.com/Backend/43606.html