getMd5:function(code)
{
{
return base64_encode(code);//进行64位编码
},
getDecode64:function(code)
{
return base64_decode(code);//解码
},
getJsonString:function(map)
{
return JSON.stringify(map);
},
getObjByJson:function(jsonString)
{
return JSON.parse(jsonString);
{
return hex_md5(code);//进行md5加密
},
getEncode64:function(code){
return base64_encode(code);//进行64位编码
},
getDecode64:function(code)
{
return base64_decode(code);//解码
},
getJsonString:function(map)
{
return JSON.stringify(map);
},
getObjByJson:function(jsonString)
{
return JSON.parse(jsonString);
},
parse用于从一个字符串中解析出json对象,如
var str = '{"name":"huangxiaojian","age":"23"}'