日期:2014-05-16  浏览次数:20761 次

Ext.Ajax.request url为什么请求不到servlet

 <script type="text/javascript">
                Ext.onReady(function(){
                    new Ext.Button({
                        renderTo: Ext.getBody(),
                        text:"ajax",
                        handler: function(){
                            Ext.Ajax.request({
                                url:'TimeServlet',
                                success:function(response,config){
                                    alert(config.url+","+config.method);
                                    Ext.Msg.alert("result",response.responseText);
                                },
                                failure:function(){
                                    Ext.Msg.alert("result","请求失败");
                                },
                                method:"post",
                                params:{name:"lalala"}
                            });
                        }
                    });
                });

    </