1、el错误
通常是el指定的DIV层的ID没有找到,很有可能是写错了!
2、HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy
该问题是因为页面使用的包含页面的形式,而不是以滑动(slidecard)的形式来创建的对象,所以在里面用this的时候,说使用的对象是不一样的,所以添加了this.parent=parent
<script language="JavaScript" type="text/javascript">
Ext.onReady(function() {
Ext.QuickTips.init();
Ext.ux.ScriptLoader(
"sscms/smim/scripts/personnelRoster/PersonnelRoster.js");
var config = {};
var _personnelRoster = new PersonnelRoster(this, config);
var _personnelRoster_panel_${uuid} = new Ext.Panel({
el:'_personnelRoster_panel_${uuid}',//此处el指向div id 必须唯一
bodyBorder:false,
layout:'border',
frame : false,
plain : true,
items : [_personnelRoster]
});
_personnelRoster_panel_${uuid}.render();
});
</script>
<div id='_personnelRoster_panel_${uuid}' ></div>
通常是el指定的DIV层的ID没有找到,很有可能是写错了!
2、HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy
NormalRosterPanel = function(parent){
//Ext.apply(this, config);
this.parent=parent;
var sm = new Ext.grid.RowSelectionModel({
singleSelect : true
});
}
该问题是因为页面使用的包含页面的形式,而不是以滑动(slidecard)的形式来创建的对象,所以在里面用this的时候,说使用的对象是不一样的,所以添加了this.parent=parent