logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

uni-app二次封装接口请求

uni-app二次封装接口请求,使用Promise实现链式回调class HTTP {request({url,data = {},method = 'POST'}) {return new Promise((resolve, reject) => {this._request(url, resolve, reject, data, method)})}_request(url, resol

#http
uni-app之微信小程序web-view显示H5页面

<template><view class="webview"><web-view :webview-styles="webviewStyles" :style="webviewStyles" :src="link" @message="onWebMessage"></web-view></view></template>&l

#小程序
uni-app之微信小程序识别二维码参数

小程序码的参数是服务端通过设置场景值设定客户端接收:案例1:// 后端场景值:?scene=params// 页面onLoad(e) {// console.log(e.scene)const scene = decodeURIComponent(e.scene)// 注意:这里的判断不能直接使用!scenethis.invite_code = scene}案例2:// 后端场景值: ?scene

#小程序
react之表单组件的封装设计与实现

举例:antd组件antd表单使⽤⽤state实现⽤户名密码登录//FormPage.jsimport React, {Component} from "react";import {Form, Input, Button, Icon} from "antd";export default class FormPage extends Component {constructor(props) {

create-react-app脚手架搭建react项目

第一步:下载安装全局的脚手架工具npx i -g create-react-app或者yarn add -g create-react-app第二步:脚手架创建项目create-react-app my-app第三步:切换至项目根目录cd my-app第四步:运行项目npm start或者yarn start其他打包:npm run build或者yarn build...

react-native初始化构建项目

使用react-native-cli搭建react-native跨端项目:第一:安装react-native-clinpm install -g react-native-cli第二:初始化项目react-native init myproject第三:运行项目react-native run-android --port 9999

#reactjs
vue 实现商品多规格的sku

template<div class="wrap wrap-sku"><div class="product-box"><div class="product-content"><div class="product-delcom" v-for="(ProductItem,n) in simulatedDATA.specifications">&lt

vue 实现商品多规格的sku

template<div class="wrap wrap-sku"><div class="product-box"><div class="product-content"><div class="product-delcom" v-for="(ProductItem,n) in simulatedDATA.specifications">&lt

uni-app结合view实现小程序的scroll-view的上拉加载和下拉刷新功能

使用订单列表为实例:实现uni-app结合uview实现小程序的scroll-view的上拉加载和下拉刷新功能<view class="order-list"><!--头部--><u-navbar :is-fixed="true" :is-back="true" title="订单列表"></u-navbar><!--导航栏--><

#uni-app
uni-app实现h5跳转app指定url或者app跳转app指定页面

场景:uni-app实现h5跳转app指定url或者app跳转app指定页面以抖音为实例:openDouyin(url) {console.log(url);if (url.indexOf('v.douyin') == -1) {uni.showToast({title: "非抖音链接",icon: "none"})return;}// #ifdef...

    共 12 条
  • 1
  • 2
  • 请选择