mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
d76b7064d4
commit
87e22b48a7
@ -24,7 +24,7 @@ Volcanos("core", {help: "数据结构",
|
|||||||
if (value != undefined) { data[key] = value }
|
if (value != undefined) { data[key] = value }
|
||||||
if (data[key] != undefined) { return data[key] }
|
if (data[key] != undefined) { return data[key] }
|
||||||
|
|
||||||
var p = data, ls = key.split("."); while (p && ls.length > 0) {
|
var p = data, ls = key.split(ice.PT); while (p && ls.length > 0) {
|
||||||
if (ls[0] == "-1") { ls[0] = p.length-1 }
|
if (ls[0] == "-1") { ls[0] = p.length-1 }
|
||||||
p = p[ls[0]], ls = ls.slice(1)
|
p = p[ls[0]], ls = ls.slice(1)
|
||||||
}; return p
|
}; return p
|
||||||
@ -75,7 +75,7 @@ Volcanos("core", {help: "数据结构",
|
|||||||
|
|
||||||
// 剩余字符
|
// 剩余字符
|
||||||
// begin > 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""})
|
// begin > 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""})
|
||||||
begin > 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""}): push(str.slice(begin)))
|
begin >= 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""}): push(str.slice(begin)))
|
||||||
return res
|
return res
|
||||||
}),
|
}),
|
||||||
CallFunc: shy("调用器", function(func, args, mod) { args = args||{}
|
CallFunc: shy("调用器", function(func, args, mod) { args = args||{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user