# Basic libraries
# console
The console.logmethod is used to output information in the console window.It can accept multiple parameters and connect their results to output.
# Math
# attribute
ELN10LN2LOG2ELOG10EPISQRT1_2SQRT2
The specific use of the above attributes refer to
ES5standard.
# method
absacosasinatanatan2ceilcosexpfloorlogmaxminpowrandomroundsinsqrttan
The specific use of the above methods refer to
ES5standard.
# JSON
# method
String ify: ConvertsobjecttoJSONcharacter string.Parse (string): Converts theJSONcharacter string to an object.
Example code:
console.log(undefined === JSON.stringify());
console.log(undefined === JSON.stringify(undefined));
console.log("null"===JSON.stringify(null));
console.log("111"===JSON.stringify(111));
console.log('"111"'===JSON.stringify("111"));
console.log("true"===JSON.stringify(true));
console.log(undefined===JSON.stringify(function(){}));
console.log(undefined===JSON.parse(JSON.stringify()));
console.log(undefined===JSON.parse(JSON.stringify(undefined)));
console.log(null===JSON.parse(JSON.stringify(null)));
console.log(111===JSON.parse(JSON.stringify(111)));
console.log("111"===JSON.parse(JSON.stringify("111")));
console.log(true===JSON.parse(JSON.stringify(true)));
console.log(undefined===JSON.parse(JSON.stringify(function(){})));
# Number
# attribute
MAX_VALUEMIN_VALUENEGATIVE_INFINITYPOSITIVE_INFINITY
The specific use of the above attributes refer to
ES5standard.
# Date
# attribute
parseUTCnow
The specific use of the above attributes refer to
ES5standard.
# Global
# attribute
NaNInfinityundefined
The specific use of the above attributes refer to
ES5standard.
# method
parseIntparseFloatisNaNisFinitedecodeURIdecodeURIComponentencodeURIencodeURIComponent
The specific use of the above methods refer to
ES5standard.