Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何根据 GWT 中的键从属性文件中获取值。我有两个属性文件,一个用于英语,另一个用于法语。我想通过使用 mouseover 事件从属性文件中获取值来为图标添加工具提示。
我怎样才能做到这一点?
请帮忙。
您需要先创建一个与属性文件同名的接口,扩展GWT提供的内置Constants接口。方法名称必须与 .properties 文件中使用的标记名称匹配
此链接可能会对您有所帮助。然后在 mouseOver 事件处理程序中获取字符串。希望这可以帮助。