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.
我需要用 ID 包装一个小部件,所以我使用 GQuery 来执行此操作,如下所示:
GQuery g = $(signupButton); g.id("signupButton");
现在我需要使用 GQuery 对象获取实际 Button 或 Widget 的实例,这可能吗?
将g.get(0)返回该按钮/小部件的包装实例吗?
g.get(0)
使用 widget() 方法
Button b = g.widget(); //later if you want to query your button via its id Button b = $("#signupButton").widget()
朱利安