- 博客(10)
- 收藏
- 关注

原创 Angular8使用Echarts4.9.0(不会有‘Can‘t bind to ‘options‘ since it isn‘t a known property of ‘div‘.ng’)
HTML页面<div #gaugeChart id="gaugeChart" style="height: 300px;"></div>在需要使用echarts的组件的component.ts引入下面的代码import { Component, ElementRef, ViewChild } from '@angular/core';import * as echarts from 'echarts';export class EvaluationDetails.
2020-10-27 19:00:21
454
原创 antd vue a-directory-tree目录树 去除isLeaf图标(去除默认的叶子图标)
没处理前的效果第一步:在数据的最后一层添加数据:isLeaf: trueconst treeData = [ { title: '0-0', key: '0-0', selectable: false, draggable: false, children: [ { title: '0-0-0', key: '0-0-0', selectable: true, draggable:
2022-02-14 16:37:35
3552
原创 Ant Design 4.0 Form表单 自定义验证规则(validator)
第一步 :rules={[{ validator: this.validatePwd}]}<Form.Item name="password" rules={[{ validator: this.validatePwd}]}> <Input prefix={<LockOutlined className="site-form-item-icon" />} type="password" placeholder="密码" /></Form.Item&g
2020-06-06 11:18:27
3523
1
原创 ant4.0 form表单 关于子组件给父组件传值(类组件)
ant4.0子组件 import React, { Component } from 'react'import PropTypes from 'prop-types'import { Form, Select, Input } from 'antd'const Item = Form.Item// const Option = Select.Option//更新分类的form组件class UpdateForm extends Component { **formRef = R
2020-06-04 16:16:27
2688
7
原创 Ant 4.0 Form表单 initialValue无法动态更新
在ant3.0中 在组件直接可以动态更新 class UpdateForm extends Component { static propTypes = { categoryName: PropTypes.string.isRequired, } render() { const {categoryName} = this.props const { getFieldDecorator } = this.props.form return (
2020-06-04 14:17:46
1886
1
原创 contes 部署Django项目
1.安装Python3.7下载依赖包yum -y install gcc gcc-c++ make yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-deve...
2020-04-11 21:12:54
217
原创 jQuery框架的基本使用(常用方法介绍)
下载:第一步:在官网下载jQuery: https://jquery.com/第二步:将下载的jQuery引入页面就可以开始使用: <script src="jquery.js所在的路径"><\/script> 常用方法介绍:一、选择器jQ所有的选择器都是以数组的形式返回;id选择器: $("#box1"); //box1为ID名 注意:jq...
2020-03-22 19:08:47
350
原创 JS面向对象编程-实例(烟花-随机落下)
布局和样式代码如下: <style> #container{ width: 80%; height: 600px; border: 2px solid red; background: #000; margin:20px auto; ...
2020-03-08 15:01:35
391
原创 js中Math的基本使用
关于MathMath 对象用于执行数学任务。注释:Math 对象并不像 Date 和 String 那样是对象的类,因此没有构造函数 Math(),像 Math.sin() 这样的函数只是函数,不是某个对象的方法。您无需创建它,通过把 Math 作为对象使用就可以调用其所有属性和方法。Math对象方法abs();(常用)参数:一个数值(必需)功能:返回数的绝对值。返回值:参数的...
2020-02-24 21:51:35
361
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人