ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Swift Tabview 视图

    Nov 30, 20224 min read
    struct MainView: View {
        var body: some View {
            TabView {
                ContentView()
                    .tabItem {
                        Label("Menu", systemImage: "list.dash")
                    }
    
                OrderView()
                    .tabItem {
                        Label("Order", systemImage: "square.and.pencil")
                    }
            }
        }
    }
    

    相关文章

    Flutter bottom sheet demo

    该代码示例展示了如何使用Flutter构建不同风格的底部弹出式模态窗口(bottom sheet modals),包括多种样式和复杂情况的实现。

    Antd 函数式Modal

    该代码片段展示了一个使用Ant Design的Modal组件实现的React函数式重置确认对话框,用于确认用户是否重置文本和样式。

    linux pkill 和kill 的区别

    在Linux中,pkill命令比kill命令更灵活和方便,因为它可以根据进程名停止进程、支持更多参数和选项、能同时杀死多个进程,并提供更好的交互界面。

    Is Your ChatGPT Getting Dumber How to Check if You're Being Secretly Downgraded

    OpenAI may secretly downgrade ChatGPT's performance for flagged IPs, affecting even Plus subscribers, with a tool available to check if you're impacted.

    TS 类型保护

    该内容介绍了在 TypeScript 中如何通过 `in` 运算符、`as` 运算符和自定义类型保护函数来区分 `Teacher` 和 `Student` 类型的 `Person` 对象。