Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/463.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获引用:未定义应用程序_Javascript_Html - Fatal编程技术网

Javascript 未捕获引用:未定义应用程序

Javascript 未捕获引用:未定义应用程序,javascript,html,Javascript,Html,这段代码是用来帮助我的网站制作动画的,我不知道是什么阻止了它。在调试器控制台中,我收到的只是一个未捕获的引用:app未定义 app.skills = { init: function () { $(".skills h1").blast({ delimiter: "character", tag: "span" }); $(".skills p").blast({ de

这段代码是用来帮助我的网站制作动画的,我不知道是什么阻止了它。在调试器控制台中,我收到的只是一个未捕获的引用:app未定义

app.skills = {
    init: function () {
        $(".skills h1").blast({
            delimiter: "character",
            tag: "span"
        });
        $(".skills p").blast({
            delimiter: "word",
            tag: "span"
        });
        a = 0;
        $(".skills h1 .blast").each(function () {
            var el = $(this);
            setTimeout(function () {
                el.addClass('animated bounceIn');
            }, a);
            a = a + 80;
        });
        setTimeout(function () {
            $(".skills .blast").removeClass('animated bounceIn');
            $(".skills .blast").css('opacity', 1);
            $(".skills .blast").mouseenter(function () {
                var el = $(this);
                $(this).addClass('animated rubberBand');
                $(this).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () {
                    el.removeClass('animated rubberBand');
                });
            });
        }, 2000);
        a = 0;
        $('.chart').not('.small').each(function () {
            var el = $(this);
            setTimeout(function () {
                el.addClass('animated rotateIn');
                el.circliful();
            }, a)
            a = a + 200;
        });
        a = 0;
        $('.chart.small').each(function () {
            var el = $(this);
            setTimeout(function () {
                el.addClass('animated flipInX');
                el.circliful();
            }, a)
            a = a + 100;
        });
    }
}

你在用什么图书馆?应用程序定义在哪里?你能解释一下什么是应用程序吗?你使用框架吗?用声明
app=app | |{}测试一次
app.skills=
app。您需要定义应用程序。如果这不是一个框架,您可以简单地通过执行
var-app={}之类的操作来定义它读取错误消息。这意味着未定义
app
。显然,在您的代码中,
应用程序
从未定义,您正在尝试访问其属性。