会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
剑气纵横六百里,一剑寒光耀九洲。
博主擅长javaScript、vue、react、react-native、css、uni-app、node.js、html、android、ios、c#、.net Core、.net Framework 、SQL等单词的拼写,能熟练运用Ctrl+C 、Ctrl+V。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
25
26
27
28
29
30
31
32
33
···
44
下一页
2021年5月21日
axios 在ios某部分机型中,出现请求状态为0,回调为undefined的问题,pc端,安卓端正常
摘要: 说起来也奇怪,我在react中使用的是axios来请求数据,pc端和安卓端都能成功,部分iOS机型请求状态为0(status为0),回调 res为undefined。找了大半天也不知道原因,后来用 fetch 来请求数据如图(1-1)在iOS中正常。后面猜想是不是请求头上的原因,结果还真是这个问题,
阅读全文
posted @ 2021-05-21 16:36 龙卷风吹毁停车场
阅读(1793)
评论(0)
推荐(0)
2021年5月17日
react hooks 获取input输入的值
摘要: import React,{ useState ,useRef} from 'react' const VrCornucopiaHome = () => { const [projectContent,setProjectContent] = useState() const [projectCon
阅读全文
posted @ 2021-05-17 16:00 龙卷风吹毁停车场
阅读(2160)
评论(0)
推荐(0)
react hooks 中的事件
摘要: html import React,{ useState } from 'react' const VrCornucopiaHome = () => { const bbbbb = () => { alert(1) } return ( <button type="button" onClick={
阅读全文
posted @ 2021-05-17 15:54 龙卷风吹毁停车场
阅读(247)
评论(0)
推荐(0)
2021年5月12日
react 使用和封装路由(router.js)
摘要: 使用route 之前需要先安装 react-router-dom yarn add react-router-dom -D 在src根目录下新建router.js文件 //router.jsimport React,{ Component } from 'react' import {Route,
阅读全文
posted @ 2021-05-12 14:20 龙卷风吹毁停车场
阅读(953)
评论(0)
推荐(0)
Rract 使用js方式跳转页面
摘要: this.props.history.push('/home') 推荐使用 路由方式为 HashRouter
阅读全文
posted @ 2021-05-12 10:59 龙卷风吹毁停车场
阅读(56)
评论(0)
推荐(0)
yarn global add安装的目录(window10)
摘要: C:\Users\DELL\AppData\Local\Yarn\Data\global\node_modules\.bin
阅读全文
posted @ 2021-05-12 09:25 龙卷风吹毁停车场
阅读(450)
评论(0)
推荐(0)
2021年5月11日
React 使用axios,将axios注入到全局使用
摘要: 废话不多说,只讲干货axios的封装请移步到 https://www.cnblogs.com/tlfe/p/11911915.html 挂载在React原型上的时候是这么写的: 在index.js文件中 引入axios文件 import axios from './api/api' React.Co
阅读全文
posted @ 2021-05-11 21:47 龙卷风吹毁停车场
阅读(1606)
评论(0)
推荐(0)
解决H5支付宝支付空白页问题
摘要: 在做H5页面支付的时候,提交后台返回的form表单,拉取支付宝支付,但是取消支付,或者支付失败与成功就会出现空白页 我刚开始这么写的,结果就是处理起来非常的麻烦。 document.querySelector('body').innerHTML = res.msg; // 调用submit 方法 d
阅读全文
posted @ 2021-05-11 21:06 龙卷风吹毁停车场
阅读(1273)
评论(0)
推荐(1)
2021年5月7日
React Ant Design Mobile ListView 上拉刷新,下拉加载
摘要: import React from 'react' import './earnings.scss' import { ListView, PullToRefresh } from 'antd-mobile'; export default class Earnings extends React.
阅读全文
posted @ 2021-05-07 18:59 龙卷风吹毁停车场
阅读(1054)
评论(0)
推荐(0)
2021年4月28日
vue点击实现复制
摘要: 首先先安装模块工具 cnpm install clipboard --save 在当前页面引入模块 import Clipboard from 'clipboard'; 使用:html代码 <div class="box">我的邀请码:<span class="inviteCode" >XF684V
阅读全文
posted @ 2021-04-28 13:56 龙卷风吹毁停车场
阅读(324)
评论(0)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
44
下一页
公告