1. Passing parameters in the form of a request string (passed get parameter information) behind the URL address
2. Handling of special symbols such as Chinese, =, &
Handling of special symbols:
Passing some special symbolic information through a get parameter in a browser can be confusing, such as & =.
In order to avoid the misunderstanding of the special symbol, it needs to be encoded and processed.
1). In PHP, you can use the function Urlencode/urldecode to encode and deserialize special symbols, (Url_encode () can convert Chinese into information that the browser can recognize. After the encoded information is the% number followed by two 16 binary number)
2). In JavaScript, you can encode information such as special symbols by encodeURIComponent ().
Encoded information can be used for normal reception, without the need for anti-coding.
encodeURIComponent encoding
# used to flag a specific document location%23
% to encode special characters%25
& separating different values of variables against%26
+ Represents a space in the value of a variable%2b
\ indicates directory path%2f
= used to connect keys and values%3d
? Represents the start of a query string%3f
Each byte unit of the kanji is converted to a "% two hexadecimal number".
Two places to note for Ajax requests