标签: javascript regex urlencode url-encoding
我想在jsp中编码传递$ 0的值,我该怎么做?
以下是代码片段:
..href='"url+"$0'>$0"
答案 0 :(得分:0)
尝试使用:
url+encodeURIComponent($0)