ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    修改 Swift PlayGroud 快捷键

    Jun 27, 20222 min read
    • Open System Preferences > Keyboard.
    • Select Shortcuts.
    • Select App Shortcuts, then click "+". Select Xcode for the Application, type Execute Playground for the Menu Title (must follow the text exactly, else it might not work), then input ⌘R as the keyboard shortcut.

    相关文章

    docker-compose up 强制 buuild image

    使用 `--build` 选项执行 `docker-compose up` 命令可以强制重新构建 Docker image,确保在启动服务前生成新的 image,除非 Dockerfile 未更改。

    async属性诞生的初衷及其重要性

    `async` 属性的引入旨在通过异步加载JavaScript脚本来提升页面加载速度和用户体验。

    如何理解在js中访问变量有按值和按引用两种方式?

    在JavaScript中,访问变量可以通过按值(直接访问值的副本)或按引用(通过内存地址访问原始数据)两种方式,其中基本数据类型按值传递,而复杂数据类型如数组和对象按引用传递。

    SwiftUI 什么是 本地化字符串?

    本地化字符串是用于应用程序国际化的可翻译文本,通过 Swift 中的 NSLocalizedString 函数实现,以提供全球用户优化的本地化体验。

    如何使用JavaScript操作CSS变量?

    使用JavaScript的`style.setProperty()`和`getComputedStyle()`方法可以设置和获取CSS变量的值。