好像是在<<王者归来>>上面看到的,如下: //调试级别 var DebugLevel = {Info:1,Warning:2,Error:3,Off:4}; var Debug = {level:DebugLevel.Info, //调试等级//_output:alert, //输……