ExtJS6.2版本----组件---confim询问框--prompt输入框--wait等待缓冲框--show自定义框
test1.html
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> <meta charset="UTF-8"> <title>Insert title here</title> <!-- Ext的样式文件 --> <link rel="stylesheet" type="text/css" href="extjs/themes/neptune/theme-neptune-all.css" /> <!--Ext的核心文件 --> <script src="extjs/ext-all.js" type="text/javascript"></script> <!-- 国际化文件 --> <script src="extjs/locale-zh_CN.js" type="text/javascript"></script> <!-- 测试文件 --> <script type="text/javascript" src="text1.js"></script> </head> <body> </body> </html>
text1.js
Ext.onReady(function(){
});
Ext.onReady(function(){
//Ext.MessageBox.alert('提示信息','hello word!');
//Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog.', Ext.emptyFn);
/*Ext.Msg.alert('我是标题','Hello World!',function(){
console.info(this);
alert('我是回调函数!');
},this);*/
/*//询问框
Ext.Msg.confirm('提示信息','确定删除该条纪录么?',function(op){
if(op=='yes'){
alert('确认了!');
}else{
alert('取消了!');
}
});*/
/* //输入框
Ext.Msg.prompt('我是标题','请输入姓名:',function(op,val){
//op ok cancel
console.info(op);
console.info(val);
},this,true,'张三');
*/
/*//等待框
Ext.Msg.wait('提示信息','我是内容',{
interval: 400, //循环定时的间隔
duration: 2000, //总时长
increment: 5, //执行进度条的次数
text: '更新中,请稍后...', //进度条上的文字
scope: this,
fn: function(){
alert('更新成功!');
},
animate:true //更新渲染时提供一个动画效果
});*/
//自定义show方法
Ext.Msg.show({
title:'我是自定义的提示框!',
msg:'我是内容!',
width:300,
height:150,
buttons:Ext.Msg.YESNOCANCEL,
icon:Ext.Msg.ERROR //图标--ERROR INFO QUESTION WARNING
});
});
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?