用JavaScript实现PHP的urlencode与urldecode函数