Ext.MessageBox(2)

  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  在文本框添加波多野结衣点击确定按钮

Ext.MessageBox(2)_第1张图片

你可能感兴趣的:(object,function,XHTML,String,button,stylesheet)