[英]Uncaught TypeError: undefined is not a function in sencha touch
I am new in sencha touch. 我是新手。 So I am just try the code from this article . 所以我只是尝试本文中的代码。
The problem is when i run this code it gives this error: 问题是当我运行此代码时,它给出此错误:
Uncaught TypeError: undefined is not a function (TouchStart.js:2) 未捕获的TypeError:未定义不是函数(TouchStart.js:2)
TouchStart.js :
// JavaScript Document
new Ext.Application({
name: 'Chat',
launch: function() {
var hello = new Ext.Container({
fullscreen: true,
html: '<div id="hello">Hello World</div>'
});
this.viewport = hello;
}
});
I try this but not found solution. 我尝试此方法 ,但未找到解决方案。 so what is the problem?Thanks in advance. 那是什么问题呢?
Try this code 试试这个代码
// JavaScript Document
new Ext.Application({
name: 'Chat',
launch: function() {
var hello = new Ext.Container({
fullscreen: true,
html: '<div id="hello">Hello World</div>'
});
Ext.Application.viewport = hello;
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.