估计很多前端工程师并不清楚escape,encodeURI, encodeURIComponent的区别,也不知道什么时候该用哪个方法,以及这些方法为什么要被用到,下面我主要来阐述一下这三个方法的区别以及用法. escape 方法: 引用 MSDN JScript: The escape method returns a string value (in Unicode format) that contains the contents of [the argument]. All space