随笔分类 - JS
摘要://属性 interface Props { icon: string; } const props = withDefaults(defineProps<Props>(), { icon: '', }); //方法 const emit = defineEmits(['change']); fun
阅读全文
摘要:数据双向绑定原理在VUE中已经有很的解释和应用,此处仅为自己的一个随记。 直接上代码: //$el jQuery对象 function bindDataToDom ($el, obj, type) { obj = obj || {}; //data和value可以自定义,但不能相同,否则报错(引起过
阅读全文

浙公网安备 33010602011771号