Read certain text data from mysql and pay it to js variables such as
But I found that the unterminated string literal error was always reported under Firefox. Copy that text to txt and open it. You will find several black squares. It turns out that they are mysql line break marks.
n, in txt it cannot be displayed correctly because it uses double bytes, so 2 black squares are displayed.
Solution: When returning this data from the server, remove rn $value=str_replace("rn","",$value)