1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
bergyu 2021-10-25 16:41:31 +08:00
parent d76b7064d4
commit 87e22b48a7

View File

@ -24,7 +24,7 @@ Volcanos("core", {help: "数据结构",
if (value != undefined) { data[key] = value }
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 }
p = p[ls[0]], ls = ls.slice(1)
}; 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: ""}): push(str.slice(begin)))
begin >= 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""}): push(str.slice(begin)))
return res
}),
CallFunc: shy("调用器", function(func, args, mod) { args = args||{}