//从本地文件读取数据 public static async Task <bool> LoadFromFile() { _data = await StorageFileHelper.ReadAsync <string>("HeroesAttrCache.dota"); return(_data != null); }
//保存英雄属性数据到本地 public static async void SaveToFile() { await StorageFileHelper.WriteAsync(_data, "HeroesAttrCache.dota"); }