自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 js获取本周,本月,本年,上周,上月,去年的时间

function getTime(type){ let now = new Date(); let nowDayOfWeek = now.getDay(); //今天本周的第几天 let nowDay = now.getDate(); //当前日 let nowMonth = now.getMonth() + 1; //当前月 下标从0开始 let nowYear = now.getFullYear(); //当前年 let d = new Date(nowYear, (nowM.

2021-04-15 16:14:43 248

原创 React+Echarts 图形轮播

export function highlightLoop(echart, length, callback) { let index = 0; return setInterval(function () { if(index !== 0){ //取消高亮 echart.dispatchAction({ type: 'downplay', dataIndex: index - 1, }); } if (inde.

2021-04-13 13:36:51 389

转载 flutter针对dio网络请求封装,get,post,动态添加headers

dio封装dart文件,包含get,post请求和自定义动态headersimport 'package:dio/dio.dart';import 'dart:convert';import 'package:micro_course/http/ResultCode.dart';import 'package:micro_course/http/GlobalConfig.dart';class DioManger{ static DioManger _instance; static

2021-03-22 16:19:39 1475

原创 react + echarts 点击事件

根据官网示例,点击事件只有在html中的例子,具体做法如下:先定义echarts所在的节点,创建echarts节点,添加点击事件。<script src="echarts.min.js"></script><div id="main" style="width: 600px;height:400px;"></div><script> var myChart = echarts.init(document.getElementB

2021-03-18 16:15:13 4075 3

原创 react 调用ajax请求上传文件

const http = axios.create({ timeout:10000})var formFile = new FormData();formFile.append("file", fileObj);http({ url: 'http://', method: 'POST', headers: { 'UploadToken': '' + tokenStr, }, data: formFile,}).then((res) => {})

2021-03-18 14:54:27 307

原创 react+antd Select下拉框位置随页面偏移

<Select style={{width: 200}} getPopupContainer={triggerNode => (triggerNode.parentElement || document.body)}></Select>根据官方Api,若位置发生偏移,添加getPopupContainer属性,使其依附于其父节点,默认是body

2021-03-18 14:45:34 2865 2

原创 react+antd的Form处理

在做项目的时候,碰到一个需求要给后台传除展示在页面的其他内容,这里记录一下.const changeValue = (value) => { switch (value) { case 1: form.setFieldsValue({ "driver_class_name": "com.mysql.jdbc.Driver" }); case 2: form.setFieldsValue({ "driver_class_name": "org.apache.

2020-10-30 16:34:20 499

翻译 计算机视觉关于滤波的处理

一  摄像头的调用代码     #include  #include  using namespace std;  using namespace cv;  void main()  {      VideoCapture cap("0");//调用摄像头的一个opencv方法      while (true){          Mat fr

2016-11-27 12:46:53 364

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除