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. 主站蜘蛛池模板: 贝壳粉涂料-内墙腻子-外墙腻子-山东巨野七彩贝壳漆业中心 | 烟台条码打印机_烟台条码扫描器_烟台碳带_烟台数据采集终端_烟台斑马打印机-金鹏电子-金鹏电子 | 陕西安玻璃自动感应门-自动重叠门-磁悬浮平开门厂家【捷申达门业】 | 耐高温风管_耐高温软管_食品级软管_吸尘管_钢丝软管_卫生级软管_塑料波纹管-东莞市鑫翔宇软管有限公司 | 英国公司注册-新加坡公司注册-香港公司开户-离岸公司账户-杭州商标注册-杭州优创企业 | 非甲烷总烃分析仪|环控百科 | 山西3A认证|太原AAA信用认证|投标AAA信用证书-山西AAA企业信用评级网 | 护腰带生产厂家_磁石_医用_热压护腰_登山护膝_背姿矫正带_保健护具_医疗护具-衡水港盛 | 商标转让-商标注册-商标查询-软著专利服务平台 - 赣江万网 | 纳米二氧化硅,白炭黑,阴离子乳化剂-臻丽拾科技 | 污水处理设备-海普欧环保集团有限公司 | 信阳市建筑勘察设计研究院有限公司 | 聚合氯化铝-碱式氯化铝-聚合硫酸铁-聚氯化铝铁生产厂家多少钱一吨-聚丙烯酰胺价格_河南浩博净水材料有限公司 | 仿清水混凝土_清水混凝土装修_施工_修饰_保护剂_修补_清水混凝土修复-德州忠岭建筑装饰工程 | 招商帮-一站式网络营销服务|搜索营销推广|信息流推广|短视视频营销推广|互联网整合营销|网络推广代运营|招商帮企业招商好帮手 | 振动台-振动试验台-振动冲击台-广东剑乔试验设备有限公司 | 南京雕塑制作厂家-不锈钢雕塑制作-玻璃钢雕塑制作-先登雕塑厂 | ETFE膜结构_PTFE膜结构_空间钢结构_膜结构_张拉膜_浙江萬豪空间结构集团有限公司 | 长沙发电机-湖南发电机-柴油发电机供应厂家-长沙明邦智能科技 | 400电话_400电话申请_888元包年_400电话办理服务中心_400VIP网 | 档案密集柜_手动密集柜_智能密集柜_内蒙古档案密集柜-盛隆柜业内蒙古密集柜直销中心 | 网络推广公司_网络营销方案策划_企业网络推广外包平台-上海澜推网络 | 冷水机,风冷冷水机,水冷冷水机,螺杆冷水机专业制造商-上海祝松机械有限公司 | 吉祥新世纪铝塑板_生产铝塑板厂家_铝塑板生产厂家_临沂市兴达铝塑装饰材料有限公司 | 宝元数控系统|对刀仪厂家|东莞机器人控制系统|东莞安川伺服-【鑫天驰智能科技】 | 成都离婚律师|成都结婚律师|成都离婚财产分割律师|成都律师-成都离婚律师网 | 华中线缆有限公司-电缆厂|电缆厂家|电线电缆厂家 | 单锥双螺旋混合机_双螺旋锥形混合机-无锡新洋设备科技有限公司 | 全自动实验室洗瓶机,移液管|培养皿|进样瓶清洗机,清洗剂-广州摩特伟希尔机械设备有限责任公司 | 盐城网络公司_盐城网站优化_盐城网站建设_盐城市启晨网络科技有限公司 | 银川美容培训-美睫美甲培训-彩妆纹绣培训-新娘化妆-学化妆-宁夏倍莱妮职业技能培训学校有限公司 临时厕所租赁_玻璃钢厕所租赁_蹲式|坐式厕所出租-北京慧海通 | 江苏农村商业银行招聘网_2024江苏农商行考试指南_江苏农商行校园招聘 | 北京网站建设|北京网站开发|北京网站设计|高端做网站公司 | 流量检测仪-气密性检测装置-密封性试验仪-东莞市奥图自动化科技有限公司 | 深圳APP开发公司_软件APP定制开发/外包制作-红匣子科技 | 北京印刷厂_北京印刷_北京印刷公司_北京印刷厂家_北京东爵盛世印刷有限公司 | 液压升降平台_剪叉式液压/导轨式升降机_传菜机定做「宁波日腾升降机厂家」 | 喷砂机厂家_自动喷砂机生产_新瑞自动化喷砂除锈设备 | 耐酸泵,耐酸泵厂家-淄博华舜耐腐蚀真空泵 | 申江储气罐厂家,储气罐批发价格,储气罐规格-上海申江压力容器有限公司(厂) | 神超官网_焊接圆锯片_高速钢锯片_硬质合金锯片_浙江神超锯业制造有限公司 |