首页 > 其他分享 >前端项目实战64-Object.entries(obj)转换为数组

前端项目实战64-Object.entries(obj)转换为数组

时间:2023-02-12 21:37:59浏览次数:39  
标签:geyao log color Object 64 entries obj


  let obj = {

            "color-1": "1",

            "color-2": "2",

            "color-3": "3",

            "geyao-1": "1",

            "geyao-2": "2",

            "geyao-3": "3"

        }

 console.log(Object.entries(obj),"Object") 

[
[
"color-1",
"1"
],
[
"color-2",
"2"
],
[
"color-3",
"3"
],
[
"geyao-1",
"1"
],
[
"geyao-2",
"2"
],
[
"geyao-3",
"3"
]
]

标签:geyao,log,color,Object,64,entries,obj
From: https://blog.51cto.com/u_15460007/6052179

相关文章

  • 论文笔记:To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesyst
    论文笔记:ToBLOBorNotToBLOB:LargeObjectStorageinaDatabaseoraFilesystem?Conclusions如果对象平均大小大于1MB,则使用操作系统的文件系统更好。如果对象大......
  • CLR Inside Out Large Object Heap Uncovered
    CLRInsideOut LargeObjectHeapUncoveredMaoniStephensContentsTheLargeObjectHeapandtheGCWhenaLargeObjectGetsCollectedLOHPerformanceImplica......
  • react实战笔记64:过滤日志1
    进行过滤操作 使用过滤数据 创建一个fliter的select数据  函数方法尽量在组件内部用......
  • sqlalchemy+pandas:错误 'OptionEngine' object has no attribute 'execute','str&
    场景:使用 sqlalchemy+pandas1.  'OptionEngine'objecthasnoattribute'execute'importpandasaspdfromsqlalchemyimportcreate_engine,textengine=c......
  • Why is address space allocation granularity 64KB?
    Whyisaddressspaceallocationgranularity64KB?RaymondChen October8th,20030 0YoumayhavewonderedwhyVirtualAllocallocatesmemoryat64K......
  • 1064
    #include<bits/stdc++.h>usingnamespacestd;intmain(intargc,char**argv){intn;cin>>n;intjin,yin,tong,jin1=0,yin1=0,tong1=0,sum=0;f......
  • 信奥赛 1064
    1064:奥运奖牌计数时间限制:1000ms      内存限制:65536KB提交数:83586   通过数:56794【题目描述】2008年北京奥运会,A国的运动员参与了n天的决赛......
  • 1064
    #include<iostream>usingnamespacestd;intmain(){ intn; cin>>n; inta,b,c; intg=0,h=0,j=0; ints; for(inti=0;i<n;i++){ cin>>a>>b>>c; g+=a; ......
  • 1064 奥运奖牌坤数
    1064:奥运奖牌计数时间限制:1000ms      内存限制:65536KB提交数:83586   通过数:56794【题目描述】2008年北京奥运会,A国的运动员参与了n天的......
  • 一个简单的RTMP服务器实现 --- RTMP与H264
    PS:要转载请注明出处,本人版权所有。PS:这个只是基于《我自己》的理解,如果和你的原则及想法相冲突,请谅解,勿喷。前置说明  本文作为本人csdnblog的主站的备份。(BlogID......