whiskey_l 2014-08-22 02:28 采纳率: 0%
浏览 1324

extjs中create一个window,里面一个panel加html然后加入buttons就报错了。

extjs中create一个window,里面一个panel加html然后加入buttons就报错了。代码如:
createMapWindows: function() {
this.mapWin = Ext.create('Ext.window.Window', {
title: '点击获取地理位置',
height: 550,
width: 700,
layout: 'auto',
modal: true,
closeAction : 'hide',
items: [{
xtype: 'panel',
html : "",
buttons: [{
text: 'Button 1'
}]
}]
});
},

报错信息:Uncaught TypeError: Cannot read property 'dom' of null

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮
    • ¥15 ads仿真结果在圆图上是怎么读数的
    • ¥20 Cotex M3的调试和程序执行方式是什么样的?
    • ¥20 java项目连接sqlserver时报ssl相关错误
    • ¥15 一道python难题3
    • ¥15 牛顿斯科特系数表表示
    • ¥15 arduino 步进电机
    • ¥20 程序进入HardFault_Handler
    • ¥15 关于#python#的问题:自动化测试