String
if (str == null || str == "" || this
return false;
if (this
return true;
else
return false;
return true;
}
String
if (str == null || str == "" || this
return false;
if (this
return true;
else
return false;
return true;
}
String
return this
}
String
return this
}
String
return this
}
String
var i =
var str = args[
var re = /{(d+)}/g;
return str
};
var Json
var t = typeof (obj);
if (t != "object" || obj === null) {
// simple data type
if (t == "string") obj = "
return String(obj);
}
else {
// recurse array or object
var n
for (n in obj) {
v = obj[n]; t = typeof (v);
if (t == "string") v = "
else if (t == "object" && v !== null)
v = Json
json
}
return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
}
};
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20105.html