我正在使用 sencha touch 开发一个 blackberry webworks 应用程序。并且在构建后仅获得白屏。
这是我的代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" id="viewport" content="height=device-height,width=device-
width,user-scalable=no" />
<title>Insert title here</title>
<script type="text/javascript" src="www/sencha-touch-all.js"></script>
<script type="text/javascript" src="www/sencha-touch.js"></script>
<script type="text/javascript">
new Ext.Application({
launch: function() {
new Ext.Panel({
fullscreen: true,
dockedItems: [{xtype:'toolbar', title:'My First App'}],
layout: 'fit',
styleHtmlContent: true,
html: '<h2>Hello World!</h2>I did it!'
});
}
</script>
</head>
<body>
<p>Hello World</p>
</body>
</html>
谁能做到这一点?请帮我。