()
| 1477 | let $imgPreview = null; |
| 1478 | // 加载缓存 |
| 1479 | function getImgCache() { |
| 1480 | try { |
| 1481 | return JSON.parse(sessionStorage.getItem('fehelper-img-preview-cache') || '{}'); |
| 1482 | } catch (e) { return {}; } |
| 1483 | } |
| 1484 | function setImgCache(url, isImg) { |
| 1485 | let cache = getImgCache(); |
| 1486 | cache[url] = isImg; |
no test coverage detected