- 博客(63)
- 收藏
- 关注
原创 iview 2.x tooltips的提示信息,默认截取 css修改
【代码】iview 2.x tooltips的提示信息,默认截取 css修改。
2025-02-20 17:03:53
62
原创 js脚本快捷将时间戳转换为yyyy-MM-dd hh:mm:ss
特殊转换,低代码表格的自定义渲染(text, record, index, $material, $lightCode, $antd) =>{ const newDate = new Date(text).toJSON(); return <div>{text?new Date(+new Date(newDate) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, ''):''}&l
2024-04-18 15:02:15
471
原创 js - iframe更改src后,浏览器后退只能后退iframe,不能使父页面后退解决办法
巧用key特性,在虚拟dom的diff算法中,key有着超高的地位,如果同一类型的虚拟节点的key不相同,就会直接销毁重新挂载,而没有key区分时就会尽可能的复用打补丁(patch)。根据这个特性,只需在iframe上增加不同的key即可,本人直接使用的src。找到原因后,第一想法就是直接整个替换iframe,于是单独写了一个renderIframe的方法,每次生成一个新的iframe,然而事与愿违。此时就产生了一个奇怪的现象:点击回退按钮,iframe出现了后退,而父页面没有回退。
2023-05-05 18:19:43
1827
原创 关于axios 传递参数,后台java spring框架识别出问题的方案
关于axios 传递参数,后台java spring框架识别出问题的方案
2023-02-02 15:14:07
184
原创 Failed to execute ‘removeChild‘ on ‘Node‘: The node to be removed is not a child of this node.
Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node
2022-08-24 14:39:27
2695
原创 react的hooks 中使用 redux,及react-redux
页面引入redux首先创建store.ts。此处主要用于仓库的入口,redux-thunk处理异步函数!import { createStore, applyMiddleware } from 'redux';import rootReducer from './reducers';import thunk from 'redux-thunk';export default createStore( rootReducer, applyMiddleware(thunk));redux
2022-05-20 17:23:04
903
原创 Vscode 默认的一些快捷键及一些辅助插件
vscode上面一些默认的快捷键逐次移动 ctrl + 方向逐次删除 ctrl + delete逐次选择 ctrl + shift +方向选择一行 ctrl + shift +home选择同样 ctrl + d选择区块 alt + shift + 右辅助插件htmltagwraphtmltagwrap 快捷键支持:alt +w 选择区域,增加父标签 默认p类似于 <span>测试</span>引用完插件后<p>
2022-04-13 17:19:45
444
原创 less 、scss、sass 导入问题
使用 @import “路径导入”直接导入时会有问题@import "./public/base.less"因为编译问题,这样导入后会阻塞代码的运行,浏览器会抛出异常一定要切记后面的分号@import "./public/base.less"; //分号切记添加上 此模块完全引入...
2022-03-18 21:23:26
269
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人