神岛 API 文档 - ArenaPro版
    Preparing search index...

    Variable requireConst

    require: { resolve: (path: string) => string; (module: string): any }

    Type declaration

      • (module: string): any
      • Parameters

        • module: string

        Returns any

        加载模块,返回模块对象。

        Loads a module and returns the module object.

        模块名称。

        The name of the module.

    • resolve: (path: string) => string

      解析模块的绝对路径。

      Resolves the absolute path of a module.

      路径。

      The path.

      模块的绝对路径。

      The absolute path of the module.

    用于加载模块,返回模块对象。

    Used to load a module and return the module object.