最新发布第21页
How to run tasks using SwiftUI’s task() modifier 如何使用 SwiftUI 的 task() 修饰符运行任务-Stewed Noodles 资源

How to run tasks using SwiftUI’s task() modifier 如何使用 SwiftUI 的 task() 修饰符运行任务

SwiftUI provides a task() modifier that starts a new task as soon as a view appears, and automatically cancels the task when the view disappears. This is sort of the equi...
Bottom Navigation-Stewed Noodles 资源

Bottom Navigation

创建 Screen HomeScreen 的可组合函数 @Composable fun HomeScreen() { Column( modifier = Modifier.fillMaxSize(), horizontalAlignment = Alignment.CenterHorizontally ) { Button( onClick...
observeAsState-Stewed Noodles 资源

observeAsState

observeAsState 是 Jetpack Compose 中用于 将 LiveData 转换为 Compose 可观察状态(State) 的扩展函数。 作用让 LiveData 的变化自动触发Compose UI 重组。 基本用法 // 无默认值 val user b...
ROOM Database-Stewed Noodles 资源

ROOM Database

Room Database 是 Android 官方提供的本地数据库框架,是 Jetpack 架构组件的一部分,用于在应用中以安全、简洁、高效的方式存储本地数据。它在 SQLite 之上提供了更高层的抽象,让开发者更容易...
Hilt 框架-Stewed Noodles 资源

Hilt 框架

Hilt 是 Google 官方推荐的 Android 依赖注入(DI)框架,基于 Dagger,极大简化了配置和使用成本,减少样板代码,与 ViewModel / Activity / Fragment / Service 深度集成,可以自动管理依赖生...
设备点检-Stewed Noodles 资源

设备点检

设备点检的基本模块 点检项目 点检项目的基本信息,如下所示 点检计划 点检计划的基本信息,如下所示 点检任务 点检任务的基本信息,如下所示
XuX的头像-Stewed Noodles 资源烩之面大会员XuX6个月前
0290
xoa 禁止强制安装-Stewed Noodles 资源

xoa 禁止强制安装

问题描述 用户在输入 ?m=install 会重新进行系统的安装。 解决方案 在用户已经安装过系统后,直接跳转到 ?m=login 页面。修改根目录下的 index.php 文件,修改的内容如下 $mode = $rock->get('m...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX58天前
0290
matplotlib 中文显示-Stewed Noodles 资源

matplotlib 中文显示

在 PyChorm 中使用利用虚拟环境进行matplotlib绘制图像中显示中文。 下载字体 使用 SimHei字体,点击此处链接进行字体下载。 ttf文件存储位置 进入 Python 脚本,执行以下操作 >>> imp...
How to create and call an async function如何创建和调用异步函数-Stewed Noodles 资源

How to create and call an async function如何创建和调用异步函数

Using async functions in Swift is done in two steps: declaring the function itself as being async, then calling that function using await.在 Swift 中使用异步函数分两步完...
What’s the difference between await and async let? await 和 async let 有什么区别?-Stewed Noodles 资源

What’s the difference between await and async let? await 和 async let 有什么区别?

Swift lets us perform async operations using both await and async let, but although they both run some async code they don’t quite run the same: await wai...