简析Google Web Toolkit(GWT)(5)
来源:网络收集 责任编辑:栏目编辑 发表时间:2013-07-01 19:51 点击:次
清单1 src\org\vivianj\gwt\public\public\HelloWorld.html
1.<html> 2.<head> 3. 4.<!-- --> 5.<!-- Any title is fine --> 6.<!-- --> 7.<title>Wrapper HTML for HelloWorld</title> 8. 9.<!-- --> 10.<!-- Use normal html, such as style --> 11.<!-- --> 12.<style> 13.body,td,a,div,.p{font-family:arial,sans-serif} 14.div,td{color:#000000} 15.a:link,.w,.w a:link{color:#0000cc} 16.a:visited{color:#551a8b} 17.a:active{color:#ff0000} 18.</style> 19. 20.<!-- --> 21.<!-- The module reference below is the link --> 22.<!-- between html and your Web Toolkit module --> 23.<!-- --> 24.<meta name='gwt:module' content='org.vivianj.gwt.HelloWorld'> 25. 26.</head> 27. 28.<!-- --> 29.<!-- The body can have arbitrary html, or --> 30.<!-- you can leave the body empty if you want --> 31.<!-- to create a completely dynamic ui --> 32.<!-- --> 33.<body> 34. 35.<!-- --> 36.<!-- This script is required bootstrap stuff. --> 37.<!-- You can put it in the HEAD, but startup --> 38.<!-- is slightly faster if you include it here. --> 39.<!-- --> 40.<script language="javascript" src="gwt.js"></script> 41. 42.<!-- OPTIONAL: include this if you want history support --> 43.<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe> 44. 45.<h1>HelloWorld</h1> 46. 47.<p> 48.This is an example of a host page for the HelloWorld application. 49.You can attach a Web Toolkit module to any HTML page you like, 50.making it easy to add bits of AJAX functionality to existing pages 51.without starting from scratch. 52.</p> 53. 54.<table align=center> 55.<tr> 56.<td id="slot1"></td><td id="slot2"></td> 57.</tr> 58.</table> 59.</body> 60.</html> |
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>