日期:2014-05-16  浏览次数:20305 次

这段js出什么问题了,调试出现"缺少对象"

var IMYUAN;
IMYUAN || (IMYUAN = {});

(function(a) {

    a.fn.extend({
        returntop: function() {
            if (this[0]) {
                var b = this.click(function() {
                    a("html, body").animate({
                        scrollTop: 0
                    },
                    120)
                }),
                c = null;
                a(window).bind("scroll",
                function() {
                    var d = a(document).scrollTop(),
                    e = a(window).height();
                    0 < d ? b.css("bottom", "200px") : b.css("bottom", "-200px");
                    a.isIE6() && (b.hide(), clearTimeout(c), c = setTimeout(function() {
                        b.show();
                        clearTimeout(c)
                    },
                    1E3), b.css("top", d + e - 125))
                })
            }
        }

    })
})

(jQuery); (function(a) {

    a("body")('<a class="close" href="javascript:;"></a>');

})

(function() {

    $("#returnTop").returntop()
});
javascript

------解决方案--------------------
a("body")('<a class="close" href="javascript:;"></a>');
这句写的不对
------解决方案--------------------
你的代码最后部分: