Home  >  Article  >  Web Front-end  >  Solve the problem of connection error when js data contains plus sign and is transmitted to the background through ajax_javascript skills

Solve the problem of connection error when js data contains plus sign and is transmitted to the background through ajax_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:27:131019browse

Yesterday, someone raised a bug, saying that "Detective B" and "Detective C" cannot be watched. I was very depressed at the time, because other resources can be played, why can't this be played, and I have converted the characters of the movie names. During debugging, I found that there was a " " after transcoding the movie name in the URL address. I wondered if this was the problem, so I deleted the " " and the link became smooth. It turned out to be this problem, so I escaped the plus sign.

There is a lot about escaping special characters on the Internet. I write this mainly to help you troubleshoot problems and provide some ideas.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn