escape在js里会使用utf8编码,而encodeURIComponent而直接可以被rails所识别,所以要编码中文,就使用encodeURIComponent。

参考:http://www.caiwangqin.com/post/179
评论
发表评论

您还没有登录,请登录后发表评论

magicgod
搜索本博客
我的相册
215886b9-3ce2-36c9-97a2-c2372e40191e-thumb
dog
共 3 张
存档
最新评论