Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
caijf committed Aug 24, 2023
1 parent 32dbcf0 commit 96fa1d5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/getImageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ let cacheResult: any;
/**
* 获取图片信息。
*
* <em style="font-weight: bold;">注意:该方法仅适用于浏览器端。</em>
*
* @static
* @alias module:Other.getImageInfo
* @since 4.20.0
Expand Down
2 changes: 2 additions & 0 deletions src/loadImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ let cacheResult: HTMLImageElement;
/**
* 加载图片。
*
* <em style="font-weight: bold;">注意:该方法仅适用于浏览器端。</em>
*
* @static
* @alias module:Other.loadImage
* @since 4.20.0
Expand Down
3 changes: 3 additions & 0 deletions src/loadImageWithBlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const SuccessResponseStatus = [200, 304];
/**
* 获取图片的 blob 对象
*
* @private
* @param {string | Blob} img 图片地址或 blob 对象
* @returns {Blob} blob 对象
*/
Expand Down Expand Up @@ -43,6 +44,8 @@ let cacheResult: { image: HTMLImageElement; blob: Blob };
/**
* 加载图片,返回图片元素和 blob 对象。
*
* <em style="font-weight: bold;">注意:该方法仅适用于浏览器端。</em>
*
* @method
* @alias module:Other.loadImageWithBlob
* @since 4.20.0
Expand Down
2 changes: 0 additions & 2 deletions src/loadScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ type ScriptAttribute = Pick<HTMLScriptElement, 'async' | 'crossOrigin' | 'defer'
/**
* 加载 js 文件。
*
* 默认属性 `async=true` `type=text/javascript` 。如果加载失败,默认会删除该 `script` 的 `dom` 标签。
*
* <em style="font-weight: bold;">注意:该方法仅适用于浏览器端。</em>
*
* @static
Expand Down

0 comments on commit 96fa1d5

Please sign in to comment.