escape:ASCII字母澈缺、數(shù)字坪创、@*/+這幾個字符不會被編碼,由于js是unicode編碼,中文會被編為unicode
encodeURI:ASCII字母姐赡、數(shù)字莱预、~!@#{{TEXTPLACEHOLDER}}*()=:/,;?+'不會被編碼
encodeURIComponent:ASCII字母、數(shù)字项滑、~!*()'不會被編碼
encodeURIComponent會把'http://'編碼成"http%3A%2F%2F"而
參考:http://www.cnblogs.com/season-huang/p/3439277.html