
react
tcllxxl
这个作者很懒,什么都没留下…
展开
-
登陆后sessionId一直更新
前端用的React,原因是fetch函数跨域设置原文:https://www.cnblogs.com/wonyun/p/fetch_polyfill_timeout_jsonp_cookie_progress.htmlfetch option 添加一下属性: credentials: ‘include’, // include, *same-origin, omit转载 2020-08-04 11:19:10 · 536 阅读 · 0 评论 -
react developer tools
下载链接:https://chrome.zzzmh.cn/info?token=fmkadmapgofadopljbjfkapdkoienihi下载完拖拽到chrome扩展程序页面原创 2020-06-04 11:00:03 · 173 阅读 · 0 评论 -
react 实现confirm
原博客忘记哪个了,再次感谢原作者。原文是js,我这是用的React,原理就是对hide属性的控制html,body { margin: 0; padding: 0; font-family: "Microsoft YaHei";}.wrap-dialog { position: fixed; top: 0; left: 0; width: 100%; height: 100%; font-size: 16px; text-align: center; z-原创 2020-05-27 13:52:34 · 3329 阅读 · 0 评论 -
react返回上一页
import {createHashHistory} from 'history' ;const history = createHashHistory();//返回上一页这段代码段代码 goBackPage = () => { history.goBack(); //返回上一页这段代码 }; <div> <button type="button" className="btn btn-link" onClick={ ()=&原创 2020-05-25 10:58:10 · 1057 阅读 · 0 评论 -
react html2canvas生成pdf
html2canvas(document.getElementById("_container")).then(function (canvas) { const contentWidth = canvas.width; const contentHeight = canvas.height; const pageData = canvas.toDat...原创 2020-03-25 17:06:58 · 1872 阅读 · 0 评论 -
react路由(缓存页面)
import {HashRouter} from 'react-router-dom';import {CacheSwitch, CacheRoute} from 'react-cache-router'; //所需包class SymptomRouter extends React.Component{ render() { return <HashRouter&...原创 2020-03-25 10:04:18 · 2751 阅读 · 1 评论