<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[晴天有何特别]]></title><description><![CDATA[踏上前端不归路，]]></description><link>https://blog.csdn.net/weixin_43222302</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_43222302]]></copyright><item><title><![CDATA[解决canvas.getImageData(),与toDataURL()跨域，与new image() onload加载慢，使用图片链接下载图片或者图片链接转化base64]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/143911172</link><guid>https://blog.csdn.net/weixin_43222302/article/details/143911172</guid><author>weixin_43222302</author><pubDate>Wed, 20 Nov 2024 14:33:53 +0800</pubDate><description><![CDATA[解决canvas.getImageData(),与toDataURL()跨域，与new image() onload加载慢，使用图片链接下载图片或者图片链接转化base64]]></description><category></category></item><item><title><![CDATA[原生js快速查找指定元素]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/130243805</link><guid>https://blog.csdn.net/weixin_43222302/article/details/130243805</guid><author>weixin_43222302</author><pubDate>Wed, 19 Apr 2023 14:51:06 +0800</pubDate><description><![CDATA[虽然已经很少有原生js写项目，不过有些组件任然使用js，原生js有一个非常麻烦的问题就是查找元素，写class怕准确度底，id总不不能写一大堆，又不想引用jquery。只需要通过父元素缩小范围，在元素队列中通过自定义属性锁定想要查找的元素,不需要定义一堆id，定义class有时候就觉得烦，更别说一堆id了。：id，class，tag支持父元素指向下级的子元素。：通过自定义属性筛选。]]></description><category></category></item><item><title><![CDATA[原生js颜色选择器取色器组件]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/130088462</link><guid>https://blog.csdn.net/weixin_43222302/article/details/130088462</guid><author>weixin_43222302</author><pubDate>Tue, 11 Apr 2023 17:29:32 +0800</pubDate><description><![CDATA[如果不是为了组件支持的范围考虑，我肯定不会用原生js写，头疼，也不能使用ts。组件参考腾讯云文档的颜色选择器样子写，当然不是完全一样，取色的工具那个是在canvas上完成的，比较特殊，未加入该功能]]></description><category></category></item><item><title><![CDATA[canvas图片裁剪]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/129746608</link><guid>https://blog.csdn.net/weixin_43222302/article/details/129746608</guid><author>weixin_43222302</author><pubDate>Fri, 24 Mar 2023 11:03:18 +0800</pubDate><description><![CDATA[通过canvas来对图片进行裁剪，这次做的用于裁剪头像类型，本来是按react的语法糖写的，但是突然想用class的方式写组件应该比较有意思。]]></description><category></category></item><item><title><![CDATA[炫酷背景404页面]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/129423263</link><guid>https://blog.csdn.net/weixin_43222302/article/details/129423263</guid><author>weixin_43222302</author><pubDate>Thu, 09 Mar 2023 15:06:31 +0800</pubDate><description><![CDATA[让你的404页面变得有点意思,非常简单，通过canvas绘制一个动态字幕瀑布,有一种电影黑客既视感]]></description><category></category></item><item><title><![CDATA[自定义滚动条+无限加载]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/129422157</link><guid>https://blog.csdn.net/weixin_43222302/article/details/129422157</guid><author>weixin_43222302</author><pubDate>Thu, 09 Mar 2023 14:39:19 +0800</pubDate><description><![CDATA[通过外套div溢出隐藏原滚动条，在使用div+css实现想要的滚动条效果，配合js模拟滚动，滚动条就可以玩出花了，之前用了一个三方插件，有bug，懒得看他源码自己写一个比较方便]]></description><category></category></item><item><title><![CDATA[js/react取色器/颜色选择器]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/128805035</link><guid>https://blog.csdn.net/weixin_43222302/article/details/128805035</guid><author>weixin_43222302</author><pubDate>Mon, 30 Jan 2023 16:39:24 +0800</pubDate><description><![CDATA[【代码】取色器/颜色选择器。react+ts+less，手搓的一个react组件,代码简单易懂，方便读写]]></description><category></category></item><item><title><![CDATA[手搓富文本编辑器组件]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/128551517</link><guid>https://blog.csdn.net/weixin_43222302/article/details/128551517</guid><author>weixin_43222302</author><pubDate>Wed, 04 Jan 2023 17:39:12 +0800</pubDate><description><![CDATA[左边是我写的其他东西，右边是效果图，图标是项目里面的，你们直接用组件的话可以自己整一套图标，也可以不要，不显示图标而已，图片/视频当然最好是自己去改成自己服务器地址，直接填充url，不然直接是base编码很大，存到数据库不好。这里是用react语法写的，如果你是用于vue的，自己改一下就行了，反正是手搓的，一劳永逸。组件的资源包已上传，审核后会补上地址。index.tsx主文件代码展示。]]></description><category></category></item><item><title><![CDATA[树形组件Tree附带选择check选择框]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/127120483</link><guid>https://blog.csdn.net/weixin_43222302/article/details/127120483</guid><author>weixin_43222302</author><pubDate>Fri, 30 Sep 2022 14:24:52 +0800</pubDate><description><![CDATA[Tree组件，携带check多选框，闲着的时候就写了一个放在这里，三方组件库的东西总是跟UI会冲突，改起来不方便，数据交互的逻辑也算是轻便易懂，基本上项目需要用的组件都自己写一个，后面即使有其他项目用起来非常方便]]></description><category></category></item><item><title><![CDATA[DES加密解密]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/126303820</link><guid>https://blog.csdn.net/weixin_43222302/article/details/126303820</guid><author>weixin_43222302</author><pubDate>Fri, 12 Aug 2022 14:37:26 +0800</pubDate><description><![CDATA[js/tsDES加密解密]]></description><category></category></item><item><title><![CDATA[react+antd拖拽生成/排序自定义配置表单]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/125599225</link><guid>https://blog.csdn.net/weixin_43222302/article/details/125599225</guid><author>weixin_43222302</author><pubDate>Mon, 04 Jul 2022 14:29:42 +0800</pubDate><description><![CDATA[拖拽生成表单，拖拽排序。自定义表单，配置表单，]]></description><category></category></item><item><title><![CDATA[获取音频流/Audio的音量-兼容safari]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/125373301</link><guid>https://blog.csdn.net/weixin_43222302/article/details/125373301</guid><author>weixin_43222302</author><pubDate>Mon, 20 Jun 2022 15:22:01 +0800</pubDate><description><![CDATA[获取音量并展示，达到可视化效果，兼容safari]]></description><category></category></item><item><title><![CDATA[敲了这么久js/ts代码居然不知道这个函数eval]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/124733070</link><guid>https://blog.csdn.net/weixin_43222302/article/details/124733070</guid><author>weixin_43222302</author><pubDate>Thu, 12 May 2022 15:55:55 +0800</pubDate><description><![CDATA[eval能够将字符串生成语句执行，和SQL的exec()相似，将字符解析转化城js语句执行，这就离谱了，安全威胁程度极高
eval的使用场合：预先不知道要执行什么语句，只有当条件和参数给时才知道执行什么语句，这时候eval就派上用场了。
eval=window.eval;
活到老学到老

...]]></description><category></category></item><item><title><![CDATA[正确使用进入全屏/退出全屏-全屏监听功能]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/123527424</link><guid>https://blog.csdn.net/weixin_43222302/article/details/123527424</guid><author>weixin_43222302</author><pubDate>Wed, 16 Mar 2022 15:30:28 +0800</pubDate><description><![CDATA[使用浏览器全屏/退出全屏/监听全屏功能，需要注意一下]]></description><category></category></item><item><title><![CDATA[react中实现系统公告-左右循环滚动（首尾衔接）]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/122824619</link><guid>https://blog.csdn.net/weixin_43222302/article/details/122824619</guid><author>weixin_43222302</author><pubDate>Tue, 08 Feb 2022 15:27:54 +0800</pubDate><description><![CDATA[组件名称：系统公告
描述：悬浮的公告栏，作用于一条消息，长度不定，公告栏宽度自适应屏幕
代码场景：react,hooks,tsx,less
功能介绍:
1.内容根据宽度自适应，无法显示完整将自动滚动，如果满足显示则居中不动
2.左右滚动，首尾衔接模式滚动，（尾部只有可视化区域一半，首部将衔接从右边显示）
注：初品，未做过多的封装功能与扩展功能,个人喜好一般自己有能力写出来的组件尽量不用插件，长远角度对维护项目/自己都有好处，有好的优化或者不明白的在下方评论留言
index.tsx
/*
 * @Autho.]]></description><category></category></item><item><title><![CDATA[react中url变化监听以及清理/修改url的参数]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/122804533</link><guid>https://blog.csdn.net/weixin_43222302/article/details/122804533</guid><author>weixin_43222302</author><pubDate>Mon, 07 Feb 2022 09:48:52 +0800</pubDate><description><![CDATA[这里记录一下写react项目遇到的url问题：
我在页面有一行代码处理：
window.history.replaceState({ path: ‘/#/home’ }, ‘’, ‘/#/home’);
因为hash模式中，这是不会刷新页面的，清理url参数，然后处理参数触发事件
在地址栏中复制粘贴两次一模一样的地址，后面一次不会触发react项目监听，就无法正常运转，
window.addEventListener(‘hashchange’, this.checkUrlFn.bind(this))；
通过]]></description><category></category></item><item><title><![CDATA[react 重定向继承url参数]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/122555986</link><guid>https://blog.csdn.net/weixin_43222302/article/details/122555986</guid><author>weixin_43222302</author><pubDate>Tue, 18 Jan 2022 11:21:16 +0800</pubDate><description><![CDATA[这里踩到一个隐性问题，先描述问题：
问题：/home,跳转到/details，然后home有代码设定home?id=123456,会获取id,执行请求并跳转到/details，（你们不需提出流程问题，项目相关业务与场景不便解释说明）,问题来了，
我在home的index.tsx下面有是处理以前的地址正确跳转项目新地址，导致在其他页面输入home?id=123456，触发了重定向，就id丢失了，导致我在home怎么都拿不到id，因为地址输入正常，完全没想到会触发重定向
处理：在重定向继承url参数即可
&lt]]></description><category></category></item><item><title><![CDATA[react日期组件DatePicker自定义]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/122307414</link><guid>https://blog.csdn.net/weixin_43222302/article/details/122307414</guid><author>weixin_43222302</author><pubDate>Tue, 04 Jan 2022 17:27:46 +0800</pubDate><description><![CDATA[组件介绍:
1.支持按键上下左右配合enter选择号数（天）,年份/月份/小时/分钟暂未开放
2.左右按钮切换年份/月份，选中的day会随着更改
3.可开启限制功能，当前版本是限制分钟为底限最新时间，开启后不能选之前的时间
4.支持选秒，但未开放，
5.小时/分钟/秒-可显示配置暂无
6.safari适配暂无
已上传文件
]]></description><category></category></item><item><title><![CDATA[react-custom-scrollbars滚动组件]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/121933788</link><guid>https://blog.csdn.net/weixin_43222302/article/details/121933788</guid><author>weixin_43222302</author><pubDate>Tue, 14 Dec 2021 17:48:01 +0800</pubDate><description><![CDATA[react-custom-scrollbars，是一款滚动区域组件，为了美化兼容各大浏览器，很遗憾，这个组件有个隐藏的兼容问题，并且我现在无法处理，
出现异常：没有满足滚动条件，出现底部，侧边滚动条，导致无法滚动的假滚动条，这是属于底层js/ts代码控制的，没办法在客户端处理，
异常场景：edg浏览器（部分电脑上必定出现，），很奇怪，我的电脑上edg同版本就没有，
建议还是别用了，我正打算自己写一个组件出来

...]]></description><category></category></item><item><title><![CDATA[自定义水印]]></title><link>https://blog.csdn.net/weixin_43222302/article/details/121848662</link><guid>https://blog.csdn.net/weixin_43222302/article/details/121848662</guid><author>weixin_43222302</author><pubDate>Fri, 10 Dec 2021 09:25:33 +0800</pubDate><description><![CDATA[简单实现自定义水印]]></description><category></category></item></channel></rss>