为了账号安全,请及时绑定邮箱和手机立即绑定

Ext 4.0 例子在IE6的问题

Ext 4.0 例子在IE6的问题

墨色风雨 2018-12-06 13:26:00
刚开始使用Ext,打算应用到一个新系统上面。结果才用了两天就出问题了。 例子在 API 文档中的 Ext.container.Viewport,在IE中运行,只要等待半分钟左右,就会出现JS错误 "events" 为空或不是对象,有空的朋友不妨尝试一下。。看看问题在哪? 附上代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><link href="Content/resources/css/ext-all.css" rel="stylesheet" type="text/css" /><script src="Script/ext-debug.js" type="text/javascript"></script><script src="Script/ext-all-debug.js" type="text/javascript"></script><script type="text/javascript">Ext.onReady(function () { Ext.create('Ext.container.Viewport', { layout: 'border', renderTo: Ext.getBody(), items: [{ region: 'north', html: '<h1 class="x-panel-header">Page Title</h1>', autoHeight: true, border: false, margins: '0 0 5 0' }, { region: 'west', collapsible: true, title: 'Navigation', width: 150 }, { region: 'south', title: 'South Panel', collapsible: true, html: 'Information goes here', split: true, height: 100, minHeight: 100 }, { region: 'east', title: 'East Panel', collapsible: true, split: true, width: 150 }, { region: 'center', xtype: 'tabpanel', activeTab: 0, items: { title: 'Default Tab', html: 'The first tab\'s content. Others may be added dynamically' } }]});})</script></head><body></body></html>
查看完整描述

3 回答

?
慕斯709654

TA贡献1840条经验 获得超5个赞

<link rel="stylesheet" href="/Feel/extjs/resources/css/ext-all.css" type="text/css"></link>
  <script type="text/javascript" src="/Feel/extjs/adapter/ext/ext-base.js"></script>
  <script type="text/javascript" src="/Feel/extjs/ext-all.js"></script>
  <script type="text/javascript" src="/Feel/extjs/src/res/ext-lang_zh_CN.js"></script>

您好像,连Ext环境中的基本引入文件还没有!

查看完整回答
反对 回复 2018-12-24
?
慕运维8079593

TA贡献1876条经验 获得超5个赞

Ext4.0应该没有adapter模块了.直接引用ext.js了
查看完整回答
反对 回复 2018-12-24
  • 3 回答
  • 0 关注
  • 591 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号