Using encodeURIComponent · tx = "測式中文xxxx"; · var str = encodeURIComponent(tx); · console.log("utf8:"+str); · len = str.replace(/%[A-F\d]{2}/g, ...
確定! 回上一頁