05 2022 档案
摘要:async function testYiBU1(){ setTimeout(() => { test1() console.log(1,new Date().getTime()) }, 1) setTimeout(() => { console.log(2,new Date().getTime()
阅读全文
摘要:1、父传子 父:<HelloWorld :msg=msg_hellow /> 子接收: ts的写法:defineProps<{ msg: string }>() js的写法:cosnt props=defineProps({ msg:{ type:String, default:()=>"没有传值显
阅读全文
摘要:报错原因,是当前终端的用户对报错的文件夹没有权限,解决方法 例如:报错提示/usr/local/*,终端输入: sudo chown -R $(whoami) /usr/local/*
阅读全文
摘要:canvas监听画布上的内容被点击(仅仅适用于,画图上的内容较少(因为需要遍历) var cannvas=document.getElementById("cannvas"); var contenxt =cannvas.getContext("2d"); 一、获取鼠标停留在画布上的区域 var x
阅读全文