Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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对象
49
function
parseJson(obj) {
50
if
(typeof obj==
"string"
){
51
return
JSON.parse(obj)
52
}
53
return
obj
54
}
55
56
function
alertTips(cls,msg,timeout,url) {
57
if
(!msg)
return
false;
Callers
1
main.js
File · 0.85
Calls
1
parse
Method · 0.80
Tested by
no test coverage detected