js enum
Enums in JavaScript? – Stack Overflow
Enums in Javascript | Stijn de Witt’s Blog
var ReadyState = { UNSENT: 0, OPENED: 1, HEADERS_RECEIVED: 2, LOADING: 3, DONE: 4, }; if (xmlHttp.readyState == ReadyState.DONE && xmlHttp.status == 200) |
即可。
转载请注明:在路上 » [已解决]js中的枚举变量