<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Loading Script and Style File</title>
</head>
    <body>
        <div ;
            node.type = 'text/css';
            if (node.addEventListener) {
                node.addEventListener('load', callback, false);
                node.addEventListener('error', function () {
                    //error function
                    //callback();
                }, false);
            }
            else { // for IE6-8
                node.onreadystatechange = function () {
                    var rs = node.readyState;
                    if (rs === 'loaded' || rs === 'complete') {
                        node.onreadystatechange = null;
                        callback();
                    }
                };
            }
            node.href = src;
            outEl.appendChild(node);
        }

        </script>
    </body>
</html>

相关文章:

  • 2021-10-11
  • 2021-12-11
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2021-07-27
  • 2022-02-07
相关资源
相似解决方案