goog.ui.ToolbarMenuButton不是一个函数;谷歌关闭

时间:2015-08-20 06:03:08

标签: javascript google-closure-compiler google-closure google-closure-library google-closure-templates

嘿我正在尝试将toolbarMenuButton添加到我的工具栏中但由于某种原因我收到此错误 try { Connection con = null; ResultSet rs; con=DB.getConnection(); // this fire returns as an Integer 4 PreparedStatement ps =con.prepareStatement("SELECT EXTRACT (EPOCH FROM(last_reply-created_on)/60):: integer as fire from streams where id=65"); rs= ps.executeQuery(); while (rs.next()) { // I then put this method through System.err.println(difference(rs.getInt("fire"))); } con.close(); return ok(); } catch (Exception e) { System.err.println(e.getMessage()); } private static String difference(Integer i) { String id=""; if(i<60) { 4 is obviously less than 60 but it is not working id= i+ " min"; } if(i>=60 && i<1440) { id=i+ " hrs"; } if(i>=1441 && i<10080) { id=i+" days"; } else { id=i+" weeks"; } // returns as 4 date return id; } 工具栏将混合使用toolbarButton和toolbarMenuButton。现在它只是toolbarButton。

goog.ui.ToolbarMenuButton is not a function ;

最初我有selectBtn1作为ToolbarButton,它工作正常。但是当我将其转换为toolbarMenuButton(见于selectBtn2)时,它会产生上述错误。为什么? 根据文档,它们都采用相同的参数。

0 个答案:

没有答案