标签 搭建 下的文章

什么是LiveData

LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. This awareness ensures LiveData only updates app component observers that are in an active lifecycle state.
Source:https://developer.android.com/topic/libraries/architecture/livedata.html

什么是ViewModel

The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configuration changes such as screen rotations.
Source:https://developer.android.com/topic/libraries/architecture/viewmodel

ViewModel的生命周期

ViewModel的生命周期



- 阅读剩余部分 -

本文讲解我在搭建Hexo博客的完整过程,主要内容包括GitHub与SSH、FAQ等。

另外还需要注意的是:

  1. Hexo博客框架和nexT主题的搭建过程本文会直接引用官方教程,一笔略过;
  2. 由于我是在Mac上搭建Hexo博客的,所有一些命令在Windows的终端中可能找不到,请自行下载安装。

下面进入正文:

- 阅读剩余部分 -