Created
October 8, 2013 09:13
-
-
Save yongchun/6881923 to your computer and use it in GitHub Desktop.
extjs如何操作panel中的html属性,既改变html的值
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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