This commit is contained in:
2025-09-14 00:21:54 +08:00
commit d40b3bbd62
766 changed files with 36275 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<view class="container">
<showbox title="数据存储">
<box>
<view>
<view style="text-align: center;">{{title}}</view>
<view style="text-align: center;" class="_text_wrap">{{content}}</view>
</view>
<view class="_ui-space">
<view class="_ui-input">
<input type="text" placeholder="请输入key" name="key" value="{{key}}" bindinput="keyChange" />
</view>
<view class="_ui-input ">
<input type="text" placeholder="请输入value" name="data" value="{{data}}" bindinput="dataChange" />
</view>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="setStorage">存储数据</button>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="setStorageObject">存储Object数据</button>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="getStorage">读取数据</button>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="clearStorageByKey">通过key清理数据</button>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="getStorageInfo">获取storage信息</button>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="clearStorage">清理数据</button>
</view>
</box>
</showbox>
</view>
<include src="templates.xhsml" />