// eval scripts from text (from mootools)
function evalScripts(text){
    var script, scripts;
    scripts = [];
    var regexp = /<script[^>]*>([\s\S]*?)<\/script>/gi;
    while ((script = regexp.exec(text))) scripts.push(script[1]);
    scripts = scripts.join('\n');

    if (scripts) (window.execScript) ? window.execScript(scripts) : window.setTimeout(scripts, 0);
}

相关文章:

  • 2021-07-26
  • 2022-12-23
  • 2021-06-08
  • 2021-06-04
  • 2022-12-23
  • 2021-06-09
  • 2021-10-26
  • 2021-07-18
猜你喜欢
  • 2021-08-04
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-07-20
相关资源
相似解决方案