<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<title>动画</title>
<script type="text/javascript" src="vue.js"></script>
<link rel="stylesheet" type="text/css" href="animate.css">
<style type="text/css">
p {
width: 300px;
height: 300px;
background: red;
margin: 10px auto;
}
</style>
<script type="text/javascript">
window.onload = function(){ var app = new Vue({
el:'#box',
data:{
show:false
}
})
} </script></head><body>
<div id="box">
<!-- 控制数据的值切换显示隐藏 -->
<button @click="show=!show">transition</button>
<!-- <transition enter-active-class="zoomInLeft" leave-active-class="zoomOutRight">
<p v-show="show" class="animated"></p>
</transition> -->
<!-- 第二种方法 -->
<!-- <transition enter-active-class="animated zoomInLeft" leave-active-class="animated zoomOutRight">
<p v-show="show"></p>
</transition> -->
<!-- 多元素运动 -->
<transition-group enter-active-class="zoomInLeft" leave-active-class="zoomOutRight">
<p v-show="show" class="animated" :key="1"></p>
<p v-show="show" class="animated" :key="2"></p>
</transition-group>
</div></body></html>vue过渡和animate.css结合使用
-
nodejs修改时区
let date = new Date(); date.setHours(date.getHours() + 8);
-
前端js传文件到Azure storage
The specified container does not exist,
-
android从byte[]字节数组中播放mp3音乐
android从byte[]字节数组中播放mp3音乐
-
mp3解码器转PCM合并
首先,为了混合两个音频文件,您需要操纵它们的原始表示;由于MP3文件被压缩,您无法直接访问信号的原始表示.您需要对压缩的MP3流进行解码,以便“理解”您的音频信号的波形,然后可以混合使用.
-
RunScriptError: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || n
cnpm config set python python2.7 cnpm config set msvs_version 2015
-
Cannot find module 'typescript'
npm install -g typescript
-
nodejs如何使用fetch
node 中没有实现 fetch,你可以使用 node-fetch,使得在 node 中也可以使用 fetch.
-
ReferenceError: FormData is not defined
npm install --save form-data
-
CommonJs 与 ESModule区别
node中模块导入require是一个内置的函数,因此只有在运行后我们才可以得知模块导出内容,无法做静态分析
-
Ts-node : SyntaxError: Cannot use import statement outside a module
"module": "CommonJS",