摘要: 说明: 封装一个公共方法connectWebsocket() ,进行全局调用 1、在src下创建utils文件夹,目录下创建index.html import config from '@/config' export default { // websocket websocket: '', // 阅读全文
posted @ 2021-04-30 15:10 浅笑19 阅读(199) 评论(0) 推荐(0)
摘要: <template> <div> <ul> <template v-for="(item) in items"> <li @mouseover="selectStyle (item) " :class="{'active':item.active}" @mouseout="outStyle(item 阅读全文
posted @ 2021-04-30 15:08 浅笑19 阅读(4812) 评论(2) 推荐(0)
摘要: 一、v-if data() { return { content: "喵喵喵", play: true } } <template> <div id="root"> <div v-if="play">{{ content }}</div> <div class="button" @click="to 阅读全文
posted @ 2021-04-30 15:07 浅笑19 阅读(669) 评论(0) 推荐(0)