electron-egg electron-egg
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
❤️成为赞助商
  • 教程

  • ee-bin

  • ee-core

    • addon

      • 插件模块
      • window
    • bin
    • config
    • const
    • const/channel
    • controller
    • core
    • cross
    • ee
    • electron
    • electron/app
    • electron/window
    • exception
    • httpclient
    • jobs
    • jobs/ChildJob
    • jobs/ChildPoolJob
    • loader
    • log
    • message
    • message/childMessage
    • ps
    • services
    • socket
    • storage
    • storage/jsondb
    • storage/sqlite
    • tools
    • this-app

    • utils
    • utils/helper
    • utils/is
      • utils/json
      • utils/time
      • utils/ip
      • utils/get-port
      • oldUtils
    • ee-go

    目录

    utils/is

    ee-core:v2.0.3

    # 介绍

    工具库is模块。

    # 使用方法

    const UtilsIs = require('ee-core/utils/is');
    

    # API列表

    # renderer()

    是否为渲染进程

    # main()

    是否为主进程

    # osx()

    是否为MacOS 平台

    # macOS()

    是否为MacOS 平台

    # windows()

    是否为windows平台

    # linux()

    是否为linux平台

    # x86()

    是否为x86架构

    # x64()

    是否为64架构

    # sandbox()

    是否运行在沙盒中(MacOS)

    # mas()

    是否正在运行,从MacOS应用商店中启动。

    # windowsStore()

    是否正在运行,从windows应用商店中启动。

    # all()

    检查传入的多个参数(函数)是否都为true。

    # none()

    检查传入的多个参数(函数)是否都为false。

    # one()

    检查传入的多个参数(函数)有一个为true。

    # release(requested)

    检查给定版本是否与操作系统相同

    # gtRelease(requested)

    检查给定版本是否大于当前OS版本

    # ltRelease(requested)

    检查给定版本是否小于当前OS版本

    上次更新: 2025/06/06, 07:21:49
    utils/helper
    utils/json

    ← utils/helper utils/json→

    Theme by Vdoing | Copyright © 2023-2025 哆啦好梦 | 京ICP备15041380号-2
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式
    ×