search

Home  >  Q&A  >  body text

Thinkphp5.0 view uses js to obtain session value problem

Asking for help from the masters~ Is there any master who can use TP?
2019-02-24_175218.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_174807.pngBut when the view is obtained using js, an error Uncaught ReferenceError: *** is not defined~self The explanation is that the function is output~
Attached is the code~Does anyone know?

HWL_SCHHWL_SCH2089 days ago1023

reply all(2)I'll reply

  • HWL_SCH

    HWL_SCH2019-02-24 18:17:46

    Asking for help from the masters~ Is there any master who can use TP? Reordered it ~ it was a bit confusing just now

    2019-02-24_174807.png

    The array data obtained through Db database query in the background ~ and then spliced ​​into characters and stored in the session ~

    2019-02-24_175218.png

    But when the view is obtained using js, an error occurs Uncaught ReferenceError: *** is not defined~I interpreted it as a function output~
    Attached is the code~Does anyone know?

    reply
    0
  • Cancelreply