12 2019 档案
摘要:子/父组件均 watch 变化, 子 组件接收初始值,然后watch 变化
阅读全文
摘要:直接修改 项目目录下的 .git/config url
阅读全文
摘要:await html2canvas(getById("winyh"), { height:500, allowTaint: true, useCORS: true, }).then((canvas) => { let base64url = canvas.toDataURL('image/jpeg', 1.0 ); // document.body.appendChild(canvas); });
阅读全文
摘要:Uncaught TypeError: Cannot read property 'toLowerCase' of undefined 原因是 没有导出 export default { name:"Test" } index.js 文件 import Test from './src/main.v
阅读全文
摘要:重点:parcel index.html 需要引入 index.js 否则不自动刷新
阅读全文
摘要:起因:需要搭建一个自动打包处理 sass / js (es6),自动监听文件变化时浏览器自动刷新的开发环境 项目目录 project build -css -js *.html src -html -sass -js 先放 gulpfile.js 文件,其他的详细配置稍后再介绍
阅读全文
摘要:1.首先启动本地的docker 2.下载 cnpm 仓库 3.进入到 cnpmjs.org目录 4.通过docker-compose.yaml启动容器 5.浏览器访问:127.0.0.1:7002 即可访问(127.0.0.1:7001 是registery 注册地址) 6.修改cnpm注册地址 7
阅读全文
摘要:this.$parent 可以访问到父组件 上所有的 data(){ 里的数据信息和生命周期方法,methods里的方法 }!
阅读全文