Using encodeURIComponent to avoid errors caused by special chars

来源:互联网 发布:数据恢复大师手机版 编辑:程序博客网 时间:2024/06/05 23:39
var url = "/tryrest/analytics/addQuery?pid="+pid+"&qname="+encodeURIComponent(qname)+"&sqlstmt="+encodeURIComponent(qscript)+"&dtep="+encodeURIComponent(qedpt);