当前位置: 代码迷 >> Web前端 >> EXT学识小汇
  详细解决方案

EXT学识小汇

热度:132   发布时间:2012-09-22 21:54:54.0
EXT知识小汇

?首先引用进ext主要文件:

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/ext/resources/css/ext-all.css">
<script type="text/javascript" src="<%=request.getContextPath()%>/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/ext/ext-all.js"></script>

?

然后就可以编写了

<script type="text/javascript">
    Ext.onReady(function(){
      Ext.Msg.alert("","Hello welcome come to ext world");
    });

<!--或者可以是 -->
     Ext.MessageBox.confirm("Confirm","请确认已经检查VAT金额的计算",callback);

     function callback(id){
	if (id == "yes") {
		var rectify_type = "1";
		document.myForm.action="<%=request.getContextPath()%>/AcountBusinessInformation.do?method=updateRectifyListing&rectify_type="+rectify_type;
		document.myForm.submit();
	}
    }



</script>

??




?

  相关解决方案