The data sent by front-end ajax is printed as Null in the back-end TP controller, but can be seen when returned to the front-end console.
fl
fl 2020-06-29 09:08:51
0
1
1085

As shown in the figure below, the backend cannot use the $keyWord obtained? The print shows Null. But if you return to the front end, console.log() can print it out. If the backend splices other strings, the frontend console.log() can also print out the spliced strings. But this $keyWord cannot be used in the back-end controller. Please advise, thank you all.

QQ图片20285943.png29090204.png

fl
fl

reply all (1)
fl

The above code is written incorrectly. It should be $request->param('keyword');, but the problem is not here. This is the mistake I made before taking the screenshot.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!