(str)
| 239 | }) |
| 240 | } |
| 241 | function jsonParse(str) { |
| 242 | if (typeof str == "string") { |
| 243 | try { |
| 244 | return JSON.parse(str); |
| 245 | } catch (e) { |
| 246 | console.log(e); |
| 247 | $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie') |
| 248 | return []; |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | function safeGet(data) { |
| 253 | try { |
| 254 | if (typeof JSON.parse(data) == "object") { |
no test coverage detected