Example Analysis of the interaction between extjs and php parameters
The editor will share with you an example analysis of the interaction between extjs and php parameters. I hope you will get something after reading this article. Let's discuss it together.
The code is as follows:
HelloWorld
Ext.onReady (function () {
Var requestConfig = {
Url:'loginServer.php', / / requested server address
Params: {userName:'lowkey', password:'zq19890319'}, / / request parameters
Method: "post"
Callback:function (options, success, response) {
Var msg= ["whether the request was successful:", success, "\ n"
"Server return value:", response.responseText]
Ext.Msg.alert ("prompt", response.responseText)
}
}
Ext.Ajax.request (requestConfig)
});
The copy code is as follows:
After reading this article, I believe you have some understanding of "sample Analysis of the interaction between extjs and php parameters". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!