MCPcopy Index your code
hub / github.com/TruthHun/BookStack / parseJson

Function parseJson

static/js/main.js:49–54  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

47
48//将json字符串解析成json对象
49function parseJson(obj) {
50 if (typeof obj=="string"){
51 return JSON.parse(obj)
52 }
53 return obj
54}
55
56function alertTips(cls,msg,timeout,url) {
57 if(!msg) return false;

Callers 1

main.jsFile · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected