标签:
function urlencode (str) { str = (str + ‘‘).toString(); return encodeURIComponent(str).replace(/!/g, ‘%21‘).replace(/‘/g, ‘%27‘).replace(/\(/g, ‘%28‘). replace(/\)/g, ‘%29‘).replace(/\*/g, ‘%2A‘).replace(/%20/g, ‘+‘); }
标签:
原文地址:http://www.cnblogs.com/GetAlert/p/4541894.html