- 博客(6)
- 收藏
- 关注
原创 react实现表单数据的更改
在react中 如果给input标签加了value属性就会报下面这个错误You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.意思是:...
2022-03-22 16:58:55 2574 1
原创 TortoiseGit(git可视化工具)
如果推送出现了错误(No supported authentication methods available(server sent:publickey)没有支持的身份验证方法可用
2022-03-02 11:48:43 296
原创 计算属性(computed),侦听器(wacht)
计算属性:1,定义: 要用的属性不存在,通过已有属性计算得来,( 计算属性所依赖的数据必须时data中的数据 )2,原理: 底层借助了Object.defineproperty 方法提供的getter 和 setter3,get函数什么时候执行? (1)、初次读取时会执行一次 (2)、当依赖的数据发生改变时会被再次调用 4,计算属性的优势:内部有缓存机制,效率较高.在依赖的数据(必须是data中的数据)没有发生变化的情况下...
2022-02-27 20:23:07 124
原创 filter(过滤器)--Vue
Vue可以自定义过滤器,可被用对要显示的数据进行特定格式化后再显示 ( 适用于一些简单的逻辑处理 )。一、语法:1、注册过滤器(1) Vue.filter (name , callback)(2) new Vue({ filters: { }})2、过滤器可以用在两个地方:(1)双花括号插值 :{{xxx | 过滤器}}{{ actors | parseActors(30) }}actors 是待处理的数据 , 就是parseAc...
2022-02-24 21:11:16 235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人