Ajax Request HTML

<script></script>及外部的js文件,都需要

var scriptStrs = response.match(/\<[\s]*?script[^\>]*?\>[\s\S]*?\<[\s]*?\/[\s]*?script[\s]*?\>/gi);

if(scriptStrs) { // remove defer-scripts from HTML content
    for (var i = 0; i < scriptStrs.length; i++) {
        response = response.replace(scriptStrs[i], "");
    }
}

screenLoader_this.deferredScriptsStrs = scriptStrs;
screenLoader_this.htmlResponse = response;
View Code

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-12-19
  • 2022-02-12
  • 2022-02-03
  • 2022-12-23
相关资源
相似解决方案