Embed php into the script tag. If there are no rows available, the parsing will fail. What are the solutions? Ndocument. getElementById (& #039; content & #039;). innerHTMLmarked (& quot; & amp; lt ;? Php $ data? & Amp; gt; & quot;); embed php into the script tag. If there are no rows available, the parsing will fail. What are the solutions?
\ N document. getElementById ('content'). innerHTML = marked (" ");
Reply content:
Embed php into the script tag. If there are no rows available, the parsing will fail. What are the solutions?
\ N document. getElementById ('content'). innerHTML = marked (" ");
It seems that the two upstairs @ b9132 @ kevins1022 did not understand the problem of the landlord.
The main problem is$data
There are many rows in the variable, that is, there is a line break, and if the output is directly, there will be a line break in the JS Code block,
Then a JS error is generated.
Similar to this: