Thinkphp5.0 view uses js to obtain session value problem
HWL_SCH
HWL_SCH 2019-02-24 18:21:35
0
2
1123
求助大神们~有用tp的大神?

2019-02-24_174807.pngIn the background, the array data is obtained through Db database query~and then spliced into characters and stored in the session~
2019-02-24_175218.pngBut when the view is obtained using js, an Uncaught ReferenceError: *** is not defined~ I interpreted it as function output~
Attached is the code~Does anyone know?

HWL_SCH
HWL_SCH

reply all (1)
韦小宝

In fact, there is another way to find out the value of the session directly in the controller and pass it to the view. This will make rendering much more convenient

    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!