久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <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="qwawimqqmiuu" id='Zdumn'><tfoot id='Zdumn'></tfoot><dl id='Zdumn'><fieldset id='Zdumn'></fieldset></dl></div>
    2. Anime.js 在 Ionic 3 項(xiàng)目中不起作用

      anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項(xiàng)目中不起作用)
          <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="qwawimqqmiuu" 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 項(xiàng)目中不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我嘗試在我的 Ionic 3 項(xiàng)目中使用anime.js,但每當(dāng)我在.ts 文件中使用函數(shù)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');
                  }
                
                }
                

                如果還有其他需要整理的文件,請?jiān)儐枺?em class="showen">

                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"導(dǎo)入動漫;

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

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

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

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

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

                相關(guān)文檔推薦

                Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數(shù)據(jù)更新 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 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態(tài)元素 - 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="qwawimqqmiuu" id='wprwO'><tfoot id='wprwO'></tfoot><dl id='wprwO'><fieldset id='wprwO'></fieldset></dl></div>

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

                        1. 主站蜘蛛池模板: 香蕉国产在线视频 | 亚洲午夜精品 | 美女高潮网站 | 日韩中文字幕 | 日日夜夜精品免费视频 | 亚洲一区视频在线 | 日韩视频中文字幕 | 亚洲欧洲一区 | 成人a免费 | 久草免费在线 | www.99re| 成人久久 | 欧美一级免费 | 欧美成年黄网站色视频 | 欧美黄在线观看 | 欧美综合国产精品久久丁香 | 狠狠的干狠狠的操 | 精品欧美一区二区在线观看 | 亚洲视频一区在线 | www网站在线观看 | 欧美午夜一区 | 亚洲一二三在线 | 亚洲精品二区 | 中文字幕精品一区二区三区精品 | 国产97色 | 国产高清一区二区三区 | 网络毛片 | 日韩三区| 亚洲视频在线观看 | 日日网 | 91成人免费看片 | 亚洲高清免费观看 | 久久精品亚洲 | 一色一黄视频 | 日本不卡在线视频 | 国产精品一区二区三区在线 | 毛片入口 | 国产美女久久 | 国产精品久久在线 | 亚洲欧美日韩精品久久亚洲区 | 久热精品在线播放 |