- 博客(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
253
原创 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
431
原创 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
3298
原创 多端-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
462
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人