📄 role_wind.js
字号:
Ext.onReady(function(){
var win;
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
var button = Ext.get('show-btn');
button.on('click', function(){
if(!win){
var data = Math.round(Math.random() * 10000);
win = new Ext.Window({
el:'role_div',
layout:'fit',
width:370,
autoScroll:true,
title:'查看有分配的角色',
maximizable :true,
height:210,
frame:true,
closeAction:'hide',
footer:true,
plain: true,
monitorResize:true,
autoHeight:false,
items:[{
autoLoad:{url:'roles.jsp?data='+data,params:'number=10&data='+data}
}],
buttons: [{
text: '关闭',
handler:function(){
win.hide();
}
},{
text: '取消',
handler:function(){
win.hide();
}
}]
});
}
win.show(this);
});
});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -