我有以下 JSON:
var json = { "system" : { "world" : { "actions" : { "hello" : { "src" : "hello world/hello world.js", "command" : "helloWorld" } } } } }
我有以下 javascript:
var x = "系统";
// 通过执行类似 json.getElementByName(x) 的操作来获取系统的内容
如何使用jQueryjson
和x
在 jQuery 中获取系统的内容?