SoFunction
Updated on 2025-02-28

Solve the connection error when js data contains plus sign + is transmitted to the background via ajax

Solve the connection error when js data contains plus sign + is transmitted to the background via ajax

Updated: August 1, 2013 17:22:02 Author:
During the test, I found that the js data contains a plus sign + when it is transmitted to the background through ajax, and the link is cleared. It is indeed this problem. Escape the plus sign
Yesterday someone raised a bug, saying that "B+ Detective" and "C+ Detective" cannot be watched. I was very depressed at the time because other resources can be played, so why can't this be played? Moreover, I have converted the name of the movie by characters. During the continuous debugging, I found that there was a "+" after the name of the url address was transcoding. I wondered if this problem was deleted, and the link was unobstructed. It was indeed this problem, and the plus sign was escaped.

There are many escaping of special characters on the Internet. I wrote this mainly to help you solve problems and provide some ideas.
  • Add a sign
  • ajax
  • Connection error

Related Articles

  • JavaScript implements the visualization of echarts water ball chart percentage display on large screen

    This article mainly introduces a detailed explanation of the visualization example of the percentage display of echarts water polo charts in JavaScript. Friends in need can refer to it for reference. I hope it can be helpful. I wish you more progress and get a promotion as soon as possible.
    2022-10-10
  • JavaScript implements mine-sweeping game

    This article mainly introduces the JavaScript mine-sweeping mini-game. The sample code in the article is introduced in detail and has certain reference value. Interested friends can refer to it.
    2022-06-06
  • Detailed explanation of CocosCreator optimization: DrawCall

    This article mainly introduces the optimization of DrawCall in CocosCreator. Students who want to study game performance must take a look
    2021-04-04
  • Native JS implements the special effect of mouse sliding love

    This article mainly introduces the special effect of native JS to realize mouse sliding love. The sample code in the article is very detailed and has certain reference value. Interested friends can refer to it.
    2021-10-10
  • Using JS as web page special effects_large image carousel (example explanation)

    Below, the editor will bring you an article using JS to make web page special effects_large picture carousel (example explanation). The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor
    2017-08-08
  • JavaScript+canvas implement Gozi chess game

    This article mainly introduces the JavaScript+canvas implementation Gozi Chess game in detail. The sample code in the article is introduced in detail and has certain reference value. Interested friends can refer to it.
    2022-05-05
  • JavaScript canvas implements water ball loading animation

    This article mainly introduces JavaScript canvas to implement water ball loading animation. The sample code in the article is introduced in detail and has certain reference value. Interested friends can refer to it.
    2022-04-04
  • Bootstrap custom file upload download style

    This article mainly teaches you how to use Bootstrap to upload and download styles. Interested friends can refer to it.
    2016-05-05
  • js canvas implement QQ call special effects

    This article mainly introduces the special effects of js canvas to implement QQ call, which has certain reference value. Interested friends can refer to it.
    2017-05-05
  • Correct way to use parseInt in Javascript

    Today, the editor will share with you an article about the correct use of parseInt in Javascript. The editor thinks the content is quite good. Now I share it with you. It has good reference value. Friends in need will follow the editor to take a look.
    2018-10-10

Latest Comments