Solve the connection error when javascript data contains the plus sign + is uploaded to the background through ajax _ javascript tips-js tutorial

Source: Internet
Author: User
During the test, it was found that the js data contains the plus sign + and a connection error occurred when it was uploaded to the backend through ajax. Deletion +, and the link was unblocked. It was indeed a problem. Someone raised a bug yesterday to escape the plus sign, I was depressed when I said "B + detective" and "C + detective" couldn't watch the video, because other resources can play the video. Why can't I play the video, in addition, I have converted all movie names. During Continuous debugging, I found that there is a "+" after the url address movie name is transcoded. I wonder if this is the problem. Delete "+ ", the link is unblocked, which is indeed a problem. Escape the plus sign.

There are a lot of escaping special characters on the Internet. I write this article to help you solve problems and provide some ideas.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.