监听事件

        try {
            window.addEventListener("load", function () {
                alert("fx");
            },false);
        }
        catch (e) {
            window.attachEvent("onload", function () {
                alert("");
            });
        }
posted @ 2011-06-22 21:43  sirzxj  阅读(142)  评论(0编辑  收藏  举报