取对象中的key

                    var stepKeyList = []; //步数key
                    for (var keyName in StepOperationsList) {
                        if (StepOperationsList.hasOwnProperty(keyName))
                        stepKeyList.push(keyName);
                    }
                    console.log('stepKeyList: ', stepKeyList);

你可能感兴趣的:(取对象中的key)