ViewButton button21 = new ViewButton();
button21.setName("view菜单1");
button21.setType("view");
button21.setUrl("www.imooc.com"); //是由于没有加上http协议,所以只要加上就可以了改成:button21.setUrl("http://www.imooc.com");
ViewButton button22 = new ViewButton();
button22.setName("view菜单二");
button22.setType("view");
button22.setUrl("http://www.baidu.com");
button21.setName("view菜单1");
button21.setType("view");
button21.setUrl("www.imooc.com"); //是由于没有加上http协议,所以只要加上就可以了改成:button21.setUrl("http://www.imooc.com");
ViewButton button22 = new ViewButton();
button22.setName("view菜单二");
button22.setType("view");
button22.setUrl("http://www.baidu.com");