ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Dayjs 计算时间差

    Jul 12, 20222 min read
    dayjs(endTime).diff(dayjs(startTime), 'years')
     
    dayjs(endTime).diff(dayjs(startTime), 'months')
     
    dayjs(endTime).diff(dayjs(startTime), 'days')  
     
    dayjs(endTime).diff(dayjs(startTime),'minutes' )
     
    dayjs(endTime).diff(dayjs(startTime), 'seconds')
    

    相关文章

    Three.js 什么是logarithmicDepthBuffer 消除模型交错闪烁?

    logarithmicDepthBuffer 是 Three.js 中用于通过将对数转换应用于线性深度缓冲来提高精度,从而减少因深度缓冲精度限制导致的模型交错闪烁问题的技术。

    Flutter Doctor [!] Proxy Configuration

    To resolve Flutter Doctor proxy configuration issue, add `export NO_PROXY=localhost,127.0.0.1` to `~/.bash_profile` or `~/.zshrc`.

    Multipass,非常轻量级的虚拟机命令管理工具

    Multipass是一款轻量级的虚拟机命令管理工具,支持Linux、Windows和macOS,可以快速创建和管理Ubuntu虚拟机,提供便捷的操作和配置自动化功能。

    NetworkError when attempting to fetch resource.

    The error "NetworkError when attempting to fetch resource" suggests a network issue, potentially resolved by checking connectivity, URL validity, server logs, clearing cache, or disabling security software, with further assistance needed if unresolved.

    在严格模式下,全局作用域中函数中this的值为什么是undefined?

    在严格模式下,全局作用域中函数内的`this`值默认为`undefined`,以避免默认绑定到全局对象的意外行为。