# snapshot **Repository Path**: mirrors_ElemeFE/snapshot ## Basic Information - **Project Name**: snapshot - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 快照 一个小工具,可以为你页面中需要异步加载数据才渲染的dom片段存储到localStorage中,下次进入页面时可直接先显示localStorage中的快照,再切换为数据拉去完毕后异步渲染出来的片段。从而增强用户体验。 ### 1. 使用说明 只要在你想要进行快照显示的文档的父节点标签上添加`data-snapshot="fragmentName"`即可,例如:

{{title}}

{{total}}
{{date}}