(str)
| 659 | }) |
| 660 | } |
| 661 | function jsonParse(str) { |
| 662 | if (typeof str == "string") { |
| 663 | try { |
| 664 | return JSON.parse(str); |
| 665 | } catch (e) { |
| 666 | console.log(e); |
| 667 | $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie') |
| 668 | return []; |
| 669 | } |
| 670 | } |
| 671 | } |
| 672 | function safeGet(data) { |
| 673 | try { |
| 674 | if (typeof JSON.parse(data) == "object") { |
no test coverage detected