原创 vue-bus 切換頁面後第一次觸發事件接收不到

最近在做一個 Vue 的管理系統,有幾個頁面使用了同一個組件。想使用 vue-bus 進行組件間的通信,子組件發佈消息,在父組件的 created 中用 on 監聽,然後在父組件的 beforeDestory 中使用 off 銷燬

原创 CentOS7 修改 MySQL 字符集

使用 MySQL 時,爲了讓 MySQL 支持中文,需要把字符集修改爲 UTF-8,方法如下: 1.查看 MySQL 字符集: // 啓動 MySQL [root@localhost ~]# systemctl status my

原创 nuxt引用組件報錯:This relative module was not found:* ./xxx.vue

nuxt引用組件時報錯: This relative module was not found: * ./xxx.vue?xvue&type=style&index=0&id=fad11dd4&scoped=true&lang=s

原创 阿里雲Code(code.aliyun)提交代碼時報錯fatal: Authentication failed for'https://code.aliyun.com/...'身份驗證失敗

阿里雲Code(code.aliyun)提交代碼時報錯fatal: Authentication failed for’https://code.aliyun.com/…'身份驗證失敗,是因爲阿里雲登錄的用戶名、密碼和code.a

原创 Vue+Element 計算器2

效果: <template> <div> <span>{{val}}</span> <div> <el-button @click="onClick(item)" v-for="item in b

原创 原生JS實現貪吃蛇

史上最low版貪吃蛇(後續可能會完善,只是可能!!!) 效果: 代碼: index.html: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8">

原创 Vue+Element 計算器

效果: <template> <div id="app"> <!-- <div>{{m}}</div> --> <div>{{val}}</div> <div> <el-button @c

原创 Vue+Element 表單練習

效果: <template> <div> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> <el

原创 原生JS實現貪吃蛇(修改版)

效果: 代碼: index.html: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>貪吃蛇</title> <link

原创 Vue+Element 員工信息

效果: <template> <div> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> <!-

原创 原生JS實現輪播圖

效果: 代碼: index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>輪播圖</title> <link

原创 html+css仿淘寶首頁靜態頁面練習

前兩天根據渡一的《淘寶商城項目實戰開發》視頻,學着用html+css做了一個淘寶首頁的靜態頁面,由於內容太多,所以只做了前兩屏的內容,代碼基本跟視頻裏的代碼一樣,有小部分不同。 其中有一部分圖片是我自己摳的,由於圖片太多,所以有的