經安全檢測,此網站為安全網站,請放心前往原始網址!

Encode URL in JavaScript? - Stack Overflow

You have three options: escape() will not encode: @*/+ encodeURI() will not encode: ~!@#$&*()=:/,;?+' encodeURIComponent() will not encode: ~!*()' But in your case, if you want to pass a URL into a GET parameter of other page, you should use escape or enc

stackoverflow.com

網址安全性掃描由 google 提供