为什么我写的EXT 代码请求都发不出去 地址栏里输入请求又可以正常访问 EXT里面就不行 运行就弹出LOST对话框
Ext.onReady(function(){
Ext.get('but').on('click',function(){
Ext.Ajax.request({
url: 'login.do',
params: {name: 'name'},
callback : function(options, success, response) {
if(success) {
alert("success");
}else {
alert("lost");
}
}
});
});
});
问题补充:
的确是URL 写错了 谢谢你的帮助