11 2019 档案
摘要:下载安装配置 npm install vuex --save 创建一个store文件夹 ,在里面创建store.js文件 //store.js里面 import Vue from "vue"import Vuex from "vuex"Vue.use(Vuex) const store=new Vu
阅读全文
摘要:第一步 main.js 把bus加到vue的原型上 Vue.prototype.bus = new Vue() 第二部 在组件Aa 发送数据 destroyed(){ this.bus.$emit('send',this.a) } 第三步 在组件Bb接收数据并且销毁数据 created(){ thi
阅读全文
摘要:父组件parent.vue 子组件 son.vue 没有点击子组件的按钮,子组件的值不会传到父组件 点击按钮之后,子组件的值传到了父组件 父组件 parent.vue 的代码 <template> <div> <h1>我是父组件</h1> {{fczdz}} <son @fcz="fczff" cl
阅读全文
摘要:图一 phone 页面 点击 三个li 跳到详情页 图二 详情页面 ,点击上面不同的li 显示不同的内容 phone.vue 相关的代码 <template> <div> <ul> <li @click="toXq(item.id)" v-for="(item,index) in lis" :id=
阅读全文
摘要:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text
阅读全文
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0,
阅读全文
摘要:右击谷歌浏览器 点击文件所在目录 复制chrome.exe到桌面 (桌面建个文件夹,复制到文件夹) 右击chrome.exe 属性 目标地址后加 以下代码(有空格) -disable-web-security --user-data-dir=D:\MyChromeDevUserData 在D盘创建文
阅读全文
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http
阅读全文
摘要:没有写过机械时钟的时候,觉得这种代起码的有几年经验的老码农才写的出来,当理解了transform-origin 这个属性,然后熟悉dom ,机械时钟跟电子时钟的难度差不多。
阅读全文