随笔分类 -  vue

摘要:1.歌词处理 未处理之前为文本格式: 处理后: const getWord = async (id) => { let res = await getSongWordAPI(id) const { lrc } = res.data store.state.playStatus.word = lrc. 阅读全文
posted @ 2022-04-10 00:33 bscman 阅读(831) 评论(0) 推荐(0)
摘要:1. npm install vue-amap --save 2. 再main.js中 import VueAMap from 'vue-amap'; Vue.use(VueAMap); // 初始化vue-amap VueAMap.initAMapApiLoader({ // 高德的key key 阅读全文
posted @ 2021-09-02 11:20 bscman 阅读(2548) 评论(0) 推荐(0)
摘要:1. vue如何将数据渲染到页面? 通过v-for指令将data数据渲染到页面 2.v-text和 v-html的区别 v-text:不可以解析html标签,v-html可以解析html标签 3. 如何自定义按键修饰符 通过Vue.config.keyCodes.按键=按键对应的keyCodes码 阅读全文
posted @ 2021-04-29 10:18 bscman 阅读(54) 评论(0) 推荐(0)
摘要:<template> <canvas id="canvas" :width="canvas_clientWidth" :height="canvas_clientHeight" @click="refresh" ref="canvas" ></canvas> </template> <script> 阅读全文
posted @ 2021-04-29 00:16 bscman 阅读(151) 评论(0) 推荐(0)