/// <summary> /// 导出数据 /// </summary> /// <returns></returns> public static string Export() { var res = new DataModel(); res.devName = DeviceName.GetDeviceName(); res.devType = DeviceType.GetDeviceType(); return(JsonConvert.SerializeObject(res)); }