Angular不能识别js对象
发布日期:2021-06-29 19:40:29
浏览次数:2
分类:技术文章
本文共 593 字,大约阅读时间需要 1 分钟。
错误信息:
ERROR in src/app/app.component.ts(34,8): error TS2304: Cannot find name 'WOW'.
解决办法:
declare var WOW: any;
参考文件:
/**
* 版权所有(C)2018,西安大华时代网络科技有限公司。保留所有权利。 */ import { Component, OnInit } from '@angular/core';//import * as $ from 'jquery';
declare var $:any;
declare var WOW: any;/**
* 应用组件 * * @author 刘宏强 */ @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit {/**
* 构造函数 */ constructor() { }/**
* 初始化方法 */ ngOnInit() { // Initiate the wowjs animation library new WOW().init(); }}
转载地址:https://daqiang.blog.csdn.net/article/details/85553987 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
网站不错 人气很旺了 加油
[***.192.178.218]2024年05月01日 20时56分51秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
asp.net错误日志写入
2019-04-30
C#如何使用转义字符来正确的表示双引号、单引号等字符串
2019-04-30
使用FILEUPLOAD控件将EXCEL文导入并保存至数据库
2019-04-30
ASP.NET 2.0个性化配置(profile)
2019-04-30
ASP.NET之:序列化
2019-04-30
Asp.Net 构架(HttpModule 介绍) - Part.3
2019-04-30
深入浅出分析C#接口的作用
2019-04-30
免费的天气预报webservice接口
2019-04-30
Server.Transfer VS Response.Redirect
2019-04-30
asp.net页面出错时常用的处理方法
2019-04-30
ASP.NET State Service
2019-04-30
web.config中的InProc模式 与 StateServer模式
2019-04-30
C#泛型集合揽胜
2019-04-30
如何选择书籍
2019-04-30
linux下清空文件内容
2019-04-30
Linux查看某目录占用空间以及其下有多少个文件
2019-04-30
ORA-01950:+对表空间+'USERS'+无权限
2019-04-30
CSS样式语法基础
2019-04-30
oracle 执行存储过程返回值
2019-04-30
C#调用存储过程的通用类
2019-04-30