Ruby string interpolation with substitution

前端 未结 0 1994
甜味超标
甜味超标 2021-01-19 08:51

I have a given method that adds keys to urls with:

url % {:key => key}

But for one url I need the key to be escaped with CGI.escape. I ca

相关标签:
回答
  • 消灭零回复
提交回复
热议问题