我正在构建一个普通的js应用程序,并且使用CDN的功能很好,但是如果我用npm安装像typed.js这样的应用程序,然后以import typed from 'typed.js'的形式导入它,它就会在本地的开发服务器上正常工作。
然而,一旦我按下它,并且它是在Netlify上构建的,我就会得到一个控制台错误声明:failed to resolve module specifier "typed.js". relative references must start with either "/", "./", or "..
我总是很难设置AngularJS动画,要么是因为我还没有“得到”TM,要么是因为名称被颠倒了。我肯定是前者。
例如,下面的CSS工作,即。元素在显示时从左边飞进来,隐藏时返回到左边。
.fly-from-left {
transition:all linear 0.2s;
left:4px
}
.fly-from-left.ng-hide-remove { // this is the start point of the show animation
left: -20px;
}
.fly-from-left.ng-hide { // this is the endpoi