Browse Source

优化浏览器兼容性代码

niujiuru 1 day ago
parent
commit
a7eff36854
2 changed files with 899 additions and 368 deletions
  1. 898 368
      web-ui.service/web/static/js/polyfills.js
  2. 1 0
      web-ui.service/web/static/js/util.js

File diff suppressed because it is too large
+ 898 - 368
web-ui.service/web/static/js/polyfills.js


+ 1 - 0
web-ui.service/web/static/js/util.js

@@ -3,6 +3,7 @@
 /**
 /**
  * 统一文件下载入口。
  * 统一文件下载入口。
  * IE10/11 走 msSaveOrOpenBlob(不支持 a[download]);现代浏览器走 a[download] + ObjectURL,下载完立即回收 URL。
  * IE10/11 走 msSaveOrOpenBlob(不支持 a[download]);现代浏览器走 a[download] + ObjectURL,下载完立即回收 URL。
+ * 注意:此函数是唯一定义,勿在 polyfills.js 或其它文件重复声明(全局函数重复声明会静默覆盖)。
  * @param {Blob} blob
  * @param {Blob} blob
  * @param {string} filename
  * @param {string} filename
  */
  */