我正在玩一款名为untrusted
的在线游戏,通过编写代码来玩。 有一些我从未见过的语法,无法找到一个网页。谁可以给我解释一下这个?什么是Javascript FunctionList?
functionList['movePlayerToExit'] = function() {
map.writeStatus("Permission denied.");
}
functionList['pleaseMovePlayerToExit'] = function() {
map.writeStatus("I don't think so.");
}
functionList['movePlayerToExitDamnit'] = function() {
map.writeStatus("So, how 'bout them <LOCAL SPORTS TEAM>?");
}
请说明什么是functionList
,谢谢!
对于那些熟悉这个游戏的人,请不要宠坏,再次感谢你!
这是一个对象。它在您的应用程序中完全*是很难说的。 – Pointy
你能更具体吗?也许是一个例子?谢谢! – weiway
查看我刚刚输入的答案。 – Pointy