上一页 1 2 3 4 5 6 7 ··· 61 下一页
摘要: @Entry@Componentstruct TextPickerDialogPage { fruits: string[] = ['苹果', '橘子', '香蕉', '鸭梨', '西瓜'] @State selectedIndex: number = 0 build() { Column({ sp 阅读全文
posted @ 2025-03-15 16:24 13522679763-任国强 阅读(7) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct TimePickerDialogPage { @State time: Date = new Date('2020-01-01T00:00:00') build() { Column({ space: 50 }) { Text(`${this.time. 阅读全文
posted @ 2025-03-15 16:22 13522679763-任国强 阅读(6) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct AlertDialogPage { build() { Column() { Button('删除') .backgroundColor(Color.Red) .onClick(() => { AlertDialog.show( { title: '删除 阅读全文
posted @ 2025-03-15 16:19 13522679763-任国强 阅读(17) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct CustomDialogPage { @State answer: string = '?' // controller: CustomDialogController = new CustomDialogController({ // builder: 阅读全文
posted @ 2025-03-15 13:24 13522679763-任国强 阅读(5) 评论(0) 推荐(0)
摘要: import { TaskItem } from '../view/TaskItem'import { TaskStatisties } from '../view/TaskStatisties'@Entry@Componentstruct TaskList { @State message: st 阅读全文
posted @ 2025-03-14 16:53 13522679763-任国强 阅读(15) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct StackPage { @State message: string = 'Hello World' build() { Column() { Stack({alignContent:Alignment.TopStart}){ Column(){ }.w 阅读全文
posted @ 2025-03-14 16:51 13522679763-任国强 阅读(6) 评论(0) 推荐(0)
摘要: @Entry@Componentstruct Page05_RelativeContainer { @State message: string = 'Hello World' build() { // RelativeContainer() { // Column(){ // Text('text 阅读全文
posted @ 2025-03-14 16:50 13522679763-任国强 阅读(9) 评论(0) 推荐(0)
摘要: // 内部公共样式@Styles function titleText2(){ .width(100).height(100).backgroundColor(Color.Red).borderRadius(10)}// 定义 Text 组件的扩展样式@Extend(Text) function t 阅读全文
posted @ 2025-03-14 16:49 13522679763-任国强 阅读(10) 评论(0) 推荐(0)
摘要: https://www.bilibili.com/video/BV1Fi4y1w7iv/?spm_id_from=333.337.search-card.all.click&vd_source=aa5c2b5a49df287e56cb7d40832d79cbpip install fastapi[a 阅读全文
posted @ 2025-01-12 13:50 13522679763-任国强 阅读(12) 评论(0) 推荐(0)
摘要: # open 参数介绍 # file 用来指定打开的文件的路径 # mode 用来指定打开文件的 模式 ### # r 只读模式 只能读取 不能写入 文件不存在会报错 # w 写入模式 只能写入 不能读取 # b 以二进制形式 打开文件 # rb 以二进制读取 # rb 以二进制写入 # a 追加模 阅读全文
posted @ 2025-01-02 16:28 13522679763-任国强 阅读(8) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 61 下一页