Skip to content

Instantly share code, notes, and snippets.

@yongchun
Created October 8, 2013 09:13
Show Gist options
  • Save yongchun/6881923 to your computer and use it in GitHub Desktop.
Save yongchun/6881923 to your computer and use it in GitHub Desktop.
extjs如何操作panel中的html属性,既改变html的值
{
title : "Variable",
id : "Variable",
region : "center",
layout : "border",
bodyStyle : 'background-color:#FFFFFF',// 设置tabPanel的背景颜色
html:'',
listeners : {
activate : function(tab) {
Ext.Ajax.request({
url : "admin/instance/variableData",
params : {
id : id
},
success : function(response) {
if (response.responseText == "false" || response.responseText == "[{}]") {
Ext.getCmp('Variable').body.update('没有流程数据');
} else {
Ext.getCmp('Variable').body.update("<pre class='brush:js'>"
+ eval("("
+ response.responseText
+ ")")[0].variableJsonString
+ "</pre>");
SyntaxHighlighter.highlight();
}
}
});
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment