自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 TypeScript 泛型使用

TypeScript 泛型使用typeoffunction testFn() { return { id: 1, name: "王二" }}// JavaScript 中console.log( typeof "HC") // string;console.log(type of test) // function // TypeScript 中type M = typeof testFn; // () => {id: number, name: stri

2021-10-21 16:07:23 215

原创 taro3 仿android原生的SwipeRefreshLayout下拉刷新组件

taro3 仿android原生的SwipeRefreshLayout组件一、android原生效果图二、代码三、遗留问题一、android原生效果图二、代码import React from 'react'import classNames from 'classnames'import styles from './index.module.scss'import { CommonPage } from 'tq-pat-ui'import { Canvas, ITouchEvent, S

2021-05-25 15:44:43 385

原创 taro/taro3,H5动态加载自定义组件

taro/taro3,H5动态加载自定义组件一、taro-H5,在html上加div二、自定义taro组件动态加载到div下1、taro3之前2、taro3之后:三、改变组件的状态(触发componentWillReceiveProps)1、taro3之前:2、taro3之后:四、隐藏或去除组件五、方法集成1、taro3之前2、taro3之后3、例子一、taro-H5,在html上加divconst div = document.createElement('div')div.id = 'testdi

2021-03-28 22:37:36 3049

原创 多端-H5-二维码生成

TQPrism(一)二维码生成1、依赖yarn add qrcode2、导入import QRCode from 'qrcode'3、使用npm文档:QRCode的api文档简单使用:// 生成base64图片格式的二维码QRCode.toDataURL('http://www.baidu.com', { errorCorrectionLevel: 'H', type: 'image/jpeg', quality: 1, margin: 1

2021-01-03 23:34:12 411

空空如也

空空如也

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

TA关注的人

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