Home > Q&A > body text
var name = "name:Fu'an" $.ajax({ dataType: 'text', url: "get_top_count?query=" + name
You can see through the browser packet capture: There is only this name:Fu
So, now I want to ask how to deal with this single quote! ~Thank you
怪我咯2017-06-12 09:34:01
escape("name:'a'") "name%3A%27a%27"