Use key's value as key in key-value pair in Javascript

前端 未结 3 893
天涯浪人
天涯浪人 2021-01-28 16:14

How can you use the value of a key-value pair as the key in a different key-value pair in javascript?

I\'d like to do the following:

var gizmos = {gizmo1         


        
3条回答
提交回复
热议问题