Sencha touch学习笔记1

html页面配置

<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Reader</title>
   	<link rel="stylesheet" href="resources/css/app.css" />
   	<script src="touch/sencha-touch-all-debug.js"></script>
   	<script src="app.js"></script>
</head>
<body>
    
</body>
</html>

 app.js启动页面

//<debug>
Ext.Loader.setPath({
    'Ext': 'touch/src',
    'Reader': 'app'
});
//</debug>

Ext.application({
	name:'Reader',
	icon:'images/icon.png',
	glossOnIcon:false,
	PhoneStartupScreen:'images/phone_startup.png',
	tabletStartuoScreen:'images/tablet_startup.png',
	launch:function(){
		var panel=Ext.create('Ext.Panel',{
			fullscreen:true,
			id:'myPanel',
			style:'color:red',
			html:'第一个页面'
		});
	}
});

猜你喜欢

转载自hylxinlang.iteye.com/blog/1984475