And Use Event Constants 以及使用事件常数
You can use constants to provide meaningful names, instead of Numbers, making your code more readable.
可以使用常数提供具有含义的名称而不是数值,从而使代码更具可读性。
Of course, you could use constants directly in the function body instead of parameters if you don't need the additional flexibility.
当然,如果您不需要更多的灵活性,那么可以在函数主体中直接使用常量,而不是参数。
One way you can further improve the manageability of your servlet/JSP application is to use constants for referencing all your JSP page destinations.
能够进一步提高 servlet/JSP 应用程序的可管理性的一种方式就是使用常量来引用所有 JSP 页面目标。
It's OK to use certain fundamental constants that come in a lot of calculators, so there's nothing we can do about that. That's OK.
当然允许使用,一些普通计算器里都有的基本常数,我们不会连这些都不让用,这是没问题的。
So it's important to write out the equation you use, you need to write out the constants that you use to fill in that equation.
因此重要的是写出你所用的公式,你需写出,你用在公式中的常数。
应用推荐