上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 83 下一页
摘要: // 可以使用回调的方法 // 父页面 // 父页面调用组件的html 中 添加事件 @test="test" methods : { test(data, cab) { setTimeout(() => { // 这里使用定时器 模拟执行完方法 console.log(data) // 这是传递过来的参数 用于处理 data++ cab(data) // 将处理完成的数据返回回去 }, 2000 阅读全文
posted @ 2020-01-06 15:05 winyh 阅读(525) 评论(0) 推荐(0)
摘要: 子/父组件均 watch 变化, 子 组件接收初始值,然后watch 变化 阅读全文
posted @ 2019-12-25 15:37 winyh 阅读(2485) 评论(0) 推荐(0)
摘要: 直接修改 项目目录下的 .git/config url 阅读全文
posted @ 2019-12-22 13:28 winyh 阅读(553) 评论(0) 推荐(0)
摘要: await html2canvas(getById("winyh"), { height:500, allowTaint: true, useCORS: true, }).then((canvas) => { let base64url = canvas.toDataURL('image/jpeg', 1.0 ); // document.body.appendChild(canvas); }); 阅读全文
posted @ 2019-12-19 10:09 winyh 阅读(1122) 评论(0) 推荐(0)
摘要: Uncaught TypeError: Cannot read property 'toLowerCase' of undefined 原因是 没有导出 export default { name:"Test" } index.js 文件 import Test from './src/main.v 阅读全文
posted @ 2019-12-18 18:28 winyh 阅读(6529) 评论(0) 推荐(1)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 83 下一页