📜  在查询字符串中使用 & 符号 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:46.808000             🧑  作者: Mango

代码示例1
They need to be percent-encoded:

> encodeURIComponent('&')
"%26"
So in your case, the URL would look like:

http://www.mysite.com?candy_name=M%26M