- 博客(4)
- 收藏
- 关注
原创 js继承的几种方式
由浅入深的js继承的几种方式1.借用构造函数继承function Parent(){ this.parent = 'parent'}function Son(){ Parent.call(this) this.son = 'son'}let son = new Son()son.parent //'parent'这种方式是在构造函数Son中调用构造...
2019-07-14 23:14:51
194
原创 antd 自定义表单验证
validFunction=(rule, value, callback)=>{ if(value<0){ callback('不能小于0') return } callback() }rules: [ { required: true, ...
2019-05-08 16:18:39
981
原创 css实现多表头table+tbody滚动
table{width: 300px;table-layout: fixed;}#tbody{display: block;height: 100px;overflow-y: auto;width: 300px;}#tbody tr{display: table;width: 100%;table-layout: fixed;}&...
2019-03-05 14:31:39
930
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人