extjs3.4.0版本问题是TypeError:types[defaultType] is not a constructor ext-all-debug.js 速求解
jsExt.onReady(function(){Ext.create('Ext.window.Window',{title:'这是我的第一个窗口',width:400,...
js
Ext.onReady(function() {
Ext.create('Ext.window.Window', {
title : '这是我的第一个窗口',
width : 400,
hight : 300,
layout : 'fit',
renderTo : Ext.getBody()
});
});
jsp引用如下
<link rel="styleSheet" type="text/css" href="js/extjs/resources/css/ext-all.css" />
<script type="text/javascript" charset="utf-8" src="js/extjs/ext-base.js"></script>
<script type="text/javascript" charset="utf-8" src="js/extjs/ext-all-debug.js"></script>
<script type="text/javascript" charset="utf-8" src="js/extjs/ext-lang-zh_CN.js"></script>
<script type="text/javascript" charset="utf-8" src="base/window_test01.js"></script> 展开
Ext.onReady(function() {
Ext.create('Ext.window.Window', {
title : '这是我的第一个窗口',
width : 400,
hight : 300,
layout : 'fit',
renderTo : Ext.getBody()
});
});
jsp引用如下
<link rel="styleSheet" type="text/css" href="js/extjs/resources/css/ext-all.css" />
<script type="text/javascript" charset="utf-8" src="js/extjs/ext-base.js"></script>
<script type="text/javascript" charset="utf-8" src="js/extjs/ext-all-debug.js"></script>
<script type="text/javascript" charset="utf-8" src="js/extjs/ext-lang-zh_CN.js"></script>
<script type="text/javascript" charset="utf-8" src="base/window_test01.js"></script> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询