wolaizheli 2014-04-28
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Ext JS in Action Chapter 02</title> <link rel="stylesheet" type="text/css" href="./ext3/resources/css/ext-all.css" /> <script type="text/javascript" src="./ext3/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="./ext3/ext-all-debug.js"></script> <script type="text/javascript"> Ext.BLANK_IMAGE_URL = './ext3/resources/images/default/s.gif'; </script> <script type="text/javascript" src="./helloTemplate.js"></script> </head> <body> </body> </html>
Ext.onReady(function() { var myTpl = new Ext.Template("<div>Hello {0}.</div>"); myTpl.append(document.body, ['Marjan']); myTpl.append(document.body, ['Michael']); myTpl.append(document.body, ['Sebastian']); });
创建了三个div追加到body中