那十几万分之一

导航

统计

09 2021 档案

关于Array.prototype.slice.call(arguments,1)的解释
摘要:Array.prototype.slice是数组原型上的方法,不能在其他类型数据上使用。 arguments是函数的参数,是一个类数组(包含有length属性),实际上还是对象类型 Array.prototype.slice.call(arguments,1)就是能够将具有length属性(这一点需 阅读全文

posted @ 2021-09-27 17:00 那十几万分之一 阅读(167) 评论(0) 推荐(0) 编辑

vue3 setup props中如何正确使用 ts
摘要:props可以使用 TypeScript 语法来声明,使用就是是向 defineProps 传递一个字面类型参数 const props = defineProps<{ name: string age?: number }>() defineProps可以和widthDefaults一起使用,wi 阅读全文

posted @ 2021-09-14 12:04 那十几万分之一 阅读(6950) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示