Egret Engine R - v6.0.0
    Preparing search index...

    Variable getOption

    getOption: (key: string) => string

    获取浏览器或者Runtime参数,如果没有设置返回空字符串 在浏览器中相当于获取url中参数,在Runtime获取对应setOption参数

    Type Declaration

      • (key: string): string
      • Parameters

        • key: string

          {string} 参数key

        Returns string

    egret.getOption

    Egret 2.4

    Web

    zh_CN