<html>
<head>
<title>HelloWorld</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" href="" >
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
Ext.onReady(function(){
var requestConfig = {
url:'loginServer.php', //请求的服务器地址
params:{userName:'lowkey', password:'zq19890319'}, //请求参数
method : "post",
callback:function(options, success, response) {
var msg=["请求是否成功:", success, "\n",
"服务器返回值:", response.responseText];
Ext.Msg.alert("提示", response.responseText);
}
}
Ext.Ajax.request(requestConfig);
});
</script>
</head>
<body>
</body>
</html>
深入extjs与php参数交互的详解
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/d353387e62e58874d27483ef53d2ae01.html