pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <legend id='Zdumn'><style id='Zdumn'><dir id='Zdumn'><q id='Zdumn'></q></dir></style></legend>
    <tfoot id='Zdumn'></tfoot>

      <small id='Zdumn'></small><noframes id='Zdumn'>

        <bdo id='Zdumn'></bdo><ul id='Zdumn'></ul>

    1. <i id='Zdumn'><tr id='Zdumn'><dt id='Zdumn'><q id='Zdumn'><span id='Zdumn'><b id='Zdumn'><form id='Zdumn'><ins id='Zdumn'></ins><ul id='Zdumn'></ul><sub id='Zdumn'></sub></form><legend id='Zdumn'></legend><bdo id='Zdumn'><pre id='Zdumn'><center id='Zdumn'></center></pre></bdo></b><th id='Zdumn'></th></span></q></dt></tr></i><div class="0ee0s00" id='Zdumn'><tfoot id='Zdumn'></tfoot><dl id='Zdumn'><fieldset id='Zdumn'></fieldset></dl></div>
    2. Anime.js 在 Ionic 3 項目中不起作用

      anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
          <tbody id='2WebG'></tbody>

        <tfoot id='2WebG'></tfoot>
        <legend id='2WebG'><style id='2WebG'><dir id='2WebG'><q id='2WebG'></q></dir></style></legend>
        <i id='2WebG'><tr id='2WebG'><dt id='2WebG'><q id='2WebG'><span id='2WebG'><b id='2WebG'><form id='2WebG'><ins id='2WebG'></ins><ul id='2WebG'></ul><sub id='2WebG'></sub></form><legend id='2WebG'></legend><bdo id='2WebG'><pre id='2WebG'><center id='2WebG'></center></pre></bdo></b><th id='2WebG'></th></span></q></dt></tr></i><div class="mq0cc0g" id='2WebG'><tfoot id='2WebG'></tfoot><dl id='2WebG'><fieldset id='2WebG'></fieldset></dl></div>
          <bdo id='2WebG'></bdo><ul id='2WebG'></ul>
          1. <small id='2WebG'></small><noframes id='2WebG'>

                本文介紹了Anime.js 在 Ionic 3 項目中不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我嘗試在我的 Ionic 3 項目中使用anime.js,但每當我在.ts 文件中使用函數anime({}) 時,它都會報告錯誤.

                I am trying to use anime.js i my Ionic 3 project but whenever I use the function anime({}) in the .ts file it reports an error.

                Error: Uncaught (in promise): TypeError: __webpack_require__.i(...) is not a 
                function
                TypeError: __webpack_require__.i(...) is not a function
                at new AnimationPage (http://localhost:8100/build/main.js:56040:78)
                at createClass (http://localhost:8100/build/main.js:11137:26)
                at createDirectiveInstance (http://localhost:8100/build/main.js:10973:37)
                at createViewNodes (http://localhost:8100/build/main.js:12323:49)
                at createRootView (http://localhost:8100/build/main.js:12228:5)
                at callWithDebugContext (http://localhost:8100/build/main.js:13359:42)
                at Object.debugCreateRootView [as createRootView] 
                (http://localhost:8100/build/main.js:12820:12)
                at ComponentFactory_.create (http://localhost:8100/build/main.js:10164:46)
                at ComponentFactoryBoundToModule.create 
                (http://localhost:8100/build/main.js:3779:29)
                at NavControllerBase._viewInit 
                (http://localhost:8100/build/main.js:43786:44)
                at c (http://localhost:8100/build/polyfills.js:3:12642)
                at Object.reject (http://localhost:8100/build/polyfills.js:3:11998)
                at NavControllerBase._fireError 
                (http://localhost:8100/build/main.js:43544:16)
                at NavControllerBase._failed (http://localhost:8100/build/main.js:43532:14)
                at http://localhost:8100/build/main.js:43587:59
                at t.invoke (http://localhost:8100/build/polyfills.js:3:8488)
                at Object.onInvoke (http://localhost:8100/build/main.js:4477:37)
                at t.invoke (http://localhost:8100/build/polyfills.js:3:8428)
                at r.run (http://localhost:8100/build/polyfills.js:3:3686)
                at http://localhost:8100/build/polyfills.js:3:13183
                Ionic Framework: 3.2.1
                Ionic App Scripts: 1.3.7
                Angular Core: 4.1.0
                Angular Compiler CLI: 4.1.0
                Node: 7.4.0
                OS Platform: Windows 10
                Navigator Platform: Win32
                User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 
                (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
                

                我的文件 animation.ts 是:

                my file animation.ts is :

                import { Component } from '@angular/core';
                import { IonicPage, NavController, NavParams } from 'ionic-angular';
                import { trigger,state,style,transition,animate,keyframes } from '@angular/animations';
                import { anime } from 'animejs';
                /**
                 * Generated class for the AnimationPage page.
                 *
                 * See http://ionicframework.com/docs/components/#navigation for more info
                 * on Ionic pages and navigation.
                 */
                @IonicPage()
                @Component({
                  selector: 'page-animation',
                  templateUrl: 'animation.html',
                
                })
                export class AnimationPage {
                    state: string ="small";
                  constructor( public navCtrl: NavController, public navParams: NavParams) {
                      anime({
                        targets: '.animatable',
                        translateX: 250
                      });
                
                  }
                
                
                  animateThis(){
                    this.state=(this.state=='small'?'large':'small');
                  }
                
                
                
                
                
                
                  ionViewDidLoad() {
                    console.log('ionViewDidLoad AnimationPage');
                  }
                
                }
                

                如果還有其他需要整理的文件,請詢問!

                If there is any other file you need to sort this out please ask!

                推薦答案

                我也遇到了這個問題,并通過檢查DefinitelyTyped(鏈接).

                I also had this problem, and fixed it by examining the tsconfig.json next to the typings in DefinitelyTyped (link).

                我在本地 tsconfig 中缺少的是 "allowSyntheticDefaultImports": true.添加后,我可以以與 DefinitelyTyped 測試,它使用:

                What I was missing in my local tsconfig was "allowSyntheticDefaultImports": true. With that added, I could import in the same way as the DefinitelyTyped test, which uses:

                從animejs"導入動漫;

                然后它可以添加如下動畫(具有預期的類型支持):

                It then works to add animations like the following (with the expected type support):

                anime({ targets: "#my-div", opacity: 0.5, duration: 1000 });

                這篇關于Anime.js 在 Ionic 3 項目中不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                How to reload the ion-page after pop() in ionic2(如何在 ionic2 中的 pop() 之后重新加載離子頁面)

                  <bdo id='wprwO'></bdo><ul id='wprwO'></ul>

                      <small id='wprwO'></small><noframes id='wprwO'>

                      <legend id='wprwO'><style id='wprwO'><dir id='wprwO'><q id='wprwO'></q></dir></style></legend>

                        <tbody id='wprwO'></tbody>
                      <i id='wprwO'><tr id='wprwO'><dt id='wprwO'><q id='wprwO'><span id='wprwO'><b id='wprwO'><form id='wprwO'><ins id='wprwO'></ins><ul id='wprwO'></ul><sub id='wprwO'></sub></form><legend id='wprwO'></legend><bdo id='wprwO'><pre id='wprwO'><center id='wprwO'></center></pre></bdo></b><th id='wprwO'></th></span></q></dt></tr></i><div class="iwuu2sm" id='wprwO'><tfoot id='wprwO'></tfoot><dl id='wprwO'><fieldset id='wprwO'></fieldset></dl></div>

                        <tfoot id='wprwO'></tfoot>

                        1. 主站蜘蛛池模板: 蒸压釜-陶粒板隔墙板蒸压釜-山东鑫泰鑫智能装备有限公司 | 湖南长沙商标注册专利申请,长沙公司注册代理记账首选美创! | 集装箱标准养护室-集装箱移动式养护室-广州璟业试验仪器有限公司 | 阻垢剂,反渗透阻垢剂,缓蚀阻垢剂-山东普尼奥水处理科技有限公司 真空粉体取样阀,电动楔式闸阀,电动针型阀-耐苛尔(上海)自动化仪表有限公司 | 电动葫芦|防爆钢丝绳电动葫芦|手拉葫芦-保定大力起重葫芦有限公司 | 在线浊度仪_悬浮物污泥浓度计_超声波泥位计_污泥界面仪_泥水界面仪-无锡蓝拓仪表科技有限公司 | 世界箱包品牌十大排名,女包小众轻奢品牌推荐200元左右,男包十大奢侈品牌排行榜双肩,学生拉杆箱什么品牌好质量好 - Gouwu3.com | 上海单片机培训|重庆曙海培训分支机构—CortexM3+uC/OS培训班,北京linux培训,Windows驱动开发培训|上海IC版图设计,西安linux培训,北京汽车电子EMC培训,ARM培训,MTK培训,Android培训 | 动环监控_机房环境监控_DCIM_机房漏水检测-斯特纽 | 电梯乘运质量测试仪_电梯安全评估测试仪-武汉懿之刻 | 移动机器人产业联盟官网 | 劳动法网-专业的劳动法和劳动争议仲裁服务网 | 反渗透阻垢剂-缓蚀阻垢剂厂家-循环水处理药剂-山东鲁东环保科技有限公司 | 碳纤维布-植筋胶-灌缝胶-固特嘉加固材料公司 | 澳威全屋定制官网|极简衣柜十大品牌|衣柜加盟代理|全屋定制招商 百度爱采购运营研究社社群-店铺托管-爱采购代运营-良言多米网络公司 | 美国查特CHART MVE液氮罐_查特杜瓦瓶_制造全球品质液氮罐 | 泰安塞纳春天装饰公司【网站】| 线粒体膜电位荧光探针-细胞膜-标记二抗-上海复申生物科技有限公司 | 电伴热系统施工_仪表电伴热保温箱厂家_沃安电伴热管缆工业技术(济南)有限公司 | 金联宇电缆总代理-金联宇集团-广东金联宇电缆实业有限公司 | 无线联网门锁|校园联网门锁|学校智能门锁|公租房智能门锁|保障房管理系统-KEENZY中科易安 | 溶氧传感器-pH传感器|哈美顿(hamilton) | 成都装修公司-成都装修设计公司推荐-成都朗煜装饰公司 | 隆众资讯-首页_大宗商品资讯_价格走势_市场行情 | 亚克力制品定制,上海嘉定有机玻璃加工制作生产厂家—官网 | 工业洗衣机_工业洗涤设备_上海力净工业洗衣机厂家-洗涤设备首页 bkzzy在职研究生网 - 在职研究生招生信息咨询平台 | 企业管理培训,企业培训公开课,企业内训课程,企业培训师 - 名课堂企业管理培训网 | 分类168信息网 - 分类信息网 免费发布与查询 | 工业胀紧套_万向节联轴器_链条-规格齐全-型号选购-非标订做-厂家批发价格-上海乙谛精密机械有限公司 | 涡轮流量计_LWGY智能气体液体电池供电计量表-金湖凯铭仪表有限公司 | 深圳市东信高科自动化设备有限公司 | 小型气象站_便携式自动气象站_校园气象站-竞道气象设备网 | 十二星座查询(性格特点分析、星座运势解读) - 玄米星座网 | 无锡市珂妮日用化妆品有限公司|珂妮日化官网|洗手液厂家 | 纸箱抗压机,拉力机,脂肪测定仪,定氮仪-山东德瑞克仪器有限公司 | 手持气象站_便携式气象站_农业气象站_负氧离子监测站-山东万象环境 | 重庆波纹管|重庆钢带管|重庆塑钢管|重庆联进管道有限公司 | 定制奶茶纸杯_定制豆浆杯_广东纸杯厂_[绿保佳]一家专业生产纸杯碗的厂家 | 防渗土工膜|污水处理防渗膜|垃圾填埋场防渗膜-泰安佳路通工程材料有限公司 | 苏州西装定制-西服定制厂家-职业装定制厂家-尺品服饰西装定做公司 | 意大利Frascold/富士豪压缩机_富士豪半封闭压缩机_富士豪活塞压缩机_富士豪螺杆压缩机 |