role_wind.js
来自「java阿里巴巴代码」· JavaScript 代码 · 共 43 行
JS
43 行
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 + =
减小字号Ctrl + -
显示快捷键?