很简单encodeURI(url)一下就行了 firefox不用encodeURI也能识别,估计是自动转码了 转载于:https://www.cnblogs.com/zhangfp/archive/2011/06/28/2091967.html