Ext.MessageBox(2)

来源:互联网 发布:大数据技术体系 编辑:程序博客网 时间:2024/05/18 03:49
 3:对话框(Ext.MessageBox.prompt 或 Ext.Msg.prompt )

          prompt( String title, String msg, [Function fn], [Object scope] )

          title:标题

          msg:显示内容

          fn:回调函数


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>ExtJs整理</title><link rel="stylesheet" type="text/css" href="ExtJs/resources/css/ext-all.css"><script type="text/javascript" src="ExtJs/adapter/ext-base.js"></script><script type="text/javascript" src="ExtJs/ext-all.js"></script><script type="text/javascript" src="ExtJs/src/locale/ext-lang-zh_CN.js"></script></head><script type="text/javascript">    Ext.onReady(function(){Ext.MessageBox.prompt("输入框", "你喜欢的AV明星", function(button, text){alert(text);});});</script><body></body></html>
运行如下:

O(∩_∩)O  在文本框添加波多野结衣点击确定按钮


原创粉丝点击