甘特图 API其他constants页面内容constants Description 存储各种常量以减少代码中魔术数字的使用 constants: anyExampledocument.addEventListener("keypress", function(e){ var keys = gantt.constants.KEY_CODES; if(e.keyCode === keys.ENTER){ // 在按下回车时执行 }});Details用于存储各种常量以减少代码中魔术数字的使用。目前仅存储 KEY_CODES 对象Need help?Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.