If your dynamic key is the only key in quotes object, you can get the first key and then access value with:var firstKey = Object.keys(quotes)[0];var cptyName = quotes[firstKey].cptyName; http://jsfiddle.net/mGZpa/ 这篇关于如何访问对象中的立即未知密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-01 18:17