forked from x/volcanos
add some
This commit is contained in:
parent
b8eefca8f5
commit
b11fba0426
@ -23,7 +23,7 @@ Volcanos("core", {
|
||||
}
|
||||
}
|
||||
}
|
||||
var node = data, keys = key.split(nfs.PT); while (node && keys.length > 0) {
|
||||
var node = data, keys = key.split(nfs.PT); while (node && keys.length > 0) { if (typeof node == "string") { return }
|
||||
if (keys[0] == "-1") { keys[0] = node.length-1 } node = node[keys[0]], keys = keys.slice(1)
|
||||
} return node == undefined? data[key]: node
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user