会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雪莉06
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
39
下一页
2020年11月23日
url参数中有+、空格、=、%、&、#等特殊符号的问题解决(转)
摘要: url出现了有+,空格,/,?,%,#,&,=等特殊符号的时候,可能在服务器端无法获得正确的参数值,如何是好?解决办法将这些字符转化成服务器可以识别的字符,对应关系如下:URL字符转义 用其它字符替代吧,或用全角的。 + URL 中+号表示空格 %2B 空格 URL中的空格可以用+号或者编码 %20
阅读全文
posted @ 2020-11-23 17:20 雪莉06
阅读(5168)
评论(0)
推荐(1)
2020年11月19日
react-router 4.0以上版本添加basename
摘要: 今天一个同事部署一个项目,启动不起来。我帮忙启动了,然后要求是加一个basename,也就是访问网站的时候用:http://www.XXX.com:8080/dataname 不是像平常那样: http://www.XXX.com:8080/ 原因是:ngix服务器上面要放不止一个网站 根目录下面已
阅读全文
posted @ 2020-11-19 14:34 雪莉06
阅读(5304)
评论(0)
推荐(2)
2020年11月18日
Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’
摘要: withCredentials: false ok 解决了问题 上午同事调试后台接口,原有的接口出现了这个问题,找到方法如下: 原因: 在CORS中,Credential不接受http响应首部中的‘Access-Control-Allow-Origin’设置为通配符‘*’ 出了什么问题? CORS
阅读全文
posted @ 2020-11-18 14:45 雪莉06
阅读(848)
评论(0)
推荐(0)
2020年11月12日
react短信验证码问题
摘要: <Row gutter={24}> <Col className="gutter-row" span={17}> <div className="gutter-box"> <Tooltip placement="bottom" title={this.state.text}> <Input styl
阅读全文
posted @ 2020-11-12 14:59 雪莉06
阅读(578)
评论(0)
推荐(0)
react网页添加水印(转)
摘要: const watermark = ({ // 使用 ES6 的函数默认值方式设置参数的默认取值 // 具体参见 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Default_parameter
阅读全文
posted @ 2020-11-12 14:54 雪莉06
阅读(950)
评论(0)
推荐(0)
2020年11月4日
初识antd pro (转)
摘要: 1.项目的入口为src/index.js文件: import './polyfill'; import dva from 'dva'; import createHistory from 'history/createHashHistory'; // user BrowserHistory // i
阅读全文
posted @ 2020-11-04 11:30 雪莉06
阅读(420)
评论(0)
推荐(0)
2020年10月21日
git切换origin远程仓库地址
摘要:
阅读全文
posted @ 2020-10-21 15:27 雪莉06
阅读(1506)
评论(0)
推荐(0)
react项目—路由和嵌套子路由(react-router4.0)
摘要: 路由的问题一直疑惑,试着找百度上面的博客做一遍,心里有数了。 1、安装相关的包: (1)npm install --save-dev react-router (2)npm install --save-dev react-router-dom (3)npm install --save react
阅读全文
posted @ 2020-10-21 10:00 雪莉06
阅读(2746)
评论(0)
推荐(0)
2020年9月28日
JavaScript 改变canvas的大小
摘要: 前言 canvas直接设置样式改变的只是canvas的大小,但是像素点并没有因此而改变,所以style 会拉升canvas的长宽, 只有直接设置attribute的属性 ,像素点的数量才会增加,canvas变化的同时,不会拉升图形 1.直接设置style, document.getElementBy
阅读全文
posted @ 2020-09-28 17:43 雪莉06
阅读(1061)
评论(0)
推荐(0)
Hover手机端实现
摘要: 起因:手机端没有hover特效,当你点击的时候就直接触发click. 强行使用hover在ipad 或者mobile留下hover, 直到下次点击才能取消。 解决:手机端有他特殊touch事件。touchstart,touchmove, touchend.(PS:电脑端没有的,PC使用mouseov
阅读全文
posted @ 2020-09-28 15:00 雪莉06
阅读(784)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
39
下一页
公告