Extjs5 memo (1) and extjs5 memo
Extjs5
1. Install the portable USB flash drive appache server. Then enter rootdir, clear the directory content, and put your own content.
2. Helloworld
Html:
Index.html is as follows:
<! DOCTYPE html>
<Html>
<Head>
<Title> Welcome to ExtJS! </Title>
<Link rel = "stylesheet" type = "text/css" href = "ext/build/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css">
<Script type = "text/javascript" src = "ext/build/ext-all.js"> </script>
<Scripttype = "text/javascript" src = "ext/trial/5.0.0/build/packages/ext-theme-neptune/build/ext-theme-neptune.js"> </script>
<Script type = "text/javascript" src = "app. js"> </script>
</Head>
<Body> </body>
</Html>
Js:
All content of this blog is original, if reproduced please indicate the source http://blog.csdn.net/myhaspl/
The content of app. js is as follows:
Ext. application ({
Name: 'myapp ',
Launch: function (){
Ext. create ('ext. Panel ',{
RenderTo: Ext. getBody (),
Width: 200,
Height: 150,
BodyPadding: 5,
Title: 'Hello world ',
Html: 'Hello <B> World </B> ...'
});
}
});