学生阿正丶2017-08-20 08:17:07
I have been working on this login button all night, but it still doesn’t respond. . . I checked the code a few times and it should be fine, but if the password is correct it won't go to the background. . Find the solution~~~
天蓬老师2017-08-19 13:14:57
This is normal for me. If there is no response when you click to log in, please open the developer tools of the browser, open the network tab, and check whether the data submitted to the server has a value, or check the request header and check the URL parameters. . Also, turn on the debugging switch of TP (root directory .env file, if it is installed by composer, it may not be available and needs to be created manually), turn on app_debug=true, and then, in the login verification method in the controller, add the received Request data to print out and view: dump($request->pare());exit; or write the data returned by ajax on the front end to the console: console.log(result) to view and ensure that there is data returned. If you click, you can see the screen flash for a moment and then stop moving. It is very likely that there is a problem with your front-end calling part. Please check whether your submission order is correct? If you really have trouble using the $.ajax function, you can refer to: layui official documentation to check out the monitoring and processing of form data submission. You can also use the submission method provided by x-admin~~
Write the code in three parts. It is rare to pass the seven-point tune in one pass. Be patient when making mistakes. For programmers, debugging skills are sometimes more important than programming skills~~
I wish you success~~
小熊拒绝套路2017-08-19 11:24:12
Me too, no response after clicking on it
I checked the code several times to make sure it’s correct