local function _encode(str) return string.format("%%%02X",string.byte(str)) end function emailEncode(str) return string.gsub(str,"([^%[email protected]])",_encode) end -- 解码 local function _decode(str) return string.char(tonumber(str,16)) end function emailDecode(str) return string.gsub(str,"%%(%w%w)",_decode) end
时间: 2024-10-08 10:14:24