MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / serializeValue

Method serializeValue

mini_program/common/Tools.js:541–544  ·  view source on GitHub ↗

* 返回序列化的值 * @param {String} value * @return {String}

(value)

Source from the content-addressed store, hash-verified

539 * @return {String}
540 */
541 serializeValue(value) {
542 if (this.isObject(value)) return this.isDate(value) ? value.toISOString() : this.toJson(value)
543 return value
544 }
545
546 /**
547 * 编码URI

Callers 1

paramSerializerMethod · 0.80

Calls 3

isObjectMethod · 0.95
isDateMethod · 0.95
toJsonMethod · 0.95

Tested by

no test coverage detected