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 Python时间序列如何拟合疏系数模型
    • ¥15 求学软件的前人们指明方向🥺
    • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
    • ¥15 MCNP里如何定义多个源?
    • ¥20 双层网络上信息-疾病传播
    • ¥50 paddlepaddle pinn
    • ¥20 idea运行测试代码报错问题
    • ¥15 网络监控:网络故障告警通知
    • ¥15 django项目运行报编码错误
    • ¥15 STM32驱动继电器