var name =${name}
var title = Ext.create("Ext.panel.Panel", {
height : 80,
html : '美容培训系统',
region : 'north',
split : true,
bbar : [{
iconCls : 'icon-user'
text : name
},'-',{
text : Ext.Date.format(new Date(),'Y年m月d日')
},'->',{
text : '退出',
iconCls : 'icon-logout'
}],
bodyStyle : 'backgroud-color:#99bbe8;line-height : 50px;padding-left:20px;font-size:22px;color:#000000;font-family:黑体;font-weight:bolder;' +
'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(153,187, 232, 0.4) ), color-stop(50%, rgba(153, 187, 232, 1) ),color-stop(0%, rgba(153, 187, 232, 0.4) ) )'
});
var title = Ext.create("Ext.panel.Panel", {
height : 80,
html : '美容培训系统',
region : 'north',
split : true,
bbar : [{
iconCls : 'icon-user'
text : name
},'-',{
text : Ext.Date.format(new Date(),'Y年m月d日')
},'->',{
text : '退出',
iconCls : 'icon-logout'
}],
bodyStyle : 'backgroud-color:#99bbe8;line-height : 50px;padding-left:20px;font-size:22px;color:#000000;font-family:黑体;font-weight:bolder;' +
'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(153,187, 232, 0.4) ), color-stop(50%, rgba(153, 187, 232, 1) ),color-stop(0%, rgba(153, 187, 232, 0.4) ) )'
});
height : 80,
html : '美容培训系统',
region : 'north',
split : true,
bbar : [{
iconCls : 'icon-user'
text : '<%=request%>'
}
var name =${name};这样也报错
楼上的'<%=request%>', ${name} 这些都应该是利用JSP的表达式里帮你代入的,看你具体要怎么时候,选择合适你的方法。
var text="<%=request....%>"
</script>
<script src="你的那个js文件“></script>var title = Ext.create("Ext.panel.Panel", {
height : 80,
html : '美容培训系统',
region : 'north',
split : true,
bbar : [{
iconCls : 'icon-user'
text : text
}