Function loadSource

  • Dynamic loading of resources, support js, images, css links, css style strings

    Parameters

    • url: string

      link to the resource, type must be passed when passing in styleString

    • option: string | SourceOptions

      parameters: attrs, props, force

    Returns Promise<boolean | string>

    • true|false|imgUrl