摘要: exports 、module.exports 是CommonJS 语法//导出module.exports = { fn: function(){ console.log('这里是fn函数') }}module.exports 与 exports用法一至//导入const Obj = requir 阅读全文
posted @ 2021-12-27 16:31 有肌肉的小眼睛 阅读(41) 评论(0) 推荐(0)
摘要: <template> <div> <lottie :options="defaultOptions" :height="400" :width="400" v-on:animCreated="handleAnimation" /> <div>数字</div> </div> </template> < 阅读全文
posted @ 2021-12-27 13:52 有肌肉的小眼睛 阅读(784) 评论(0) 推荐(0)
摘要: function switchFn(value){ switch(value){ case 0: case 1: case 2: return 'green-color'; case 3: return 'red-color'; case 4: return 'gary-color' }}switc 阅读全文
posted @ 2021-12-27 13:47 有肌肉的小眼睛 阅读(626) 评论(0) 推荐(0)