<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fuweihan00的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/fuweihan00</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; fuweihan00]]></copyright><item><title><![CDATA[使用echarts的中国地图]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/131229976</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/131229976</guid><author>fuweihan00</author><pubDate>Thu, 15 Jun 2023 16:01:57 +0800</pubDate><description><![CDATA[需要选择图表里的地图和组件里的视觉映射。]]></description><category></category></item><item><title><![CDATA[常见的Webpack Babel用来解析ES6语法的插件]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/130156313</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/130156313</guid><author>fuweihan00</author><pubDate>Fri, 14 Apr 2023 16:11:24 +0800</pubDate><description><![CDATA[7. @babel/plugin-transform-regenerator：用于将使用async/await关键字的异步函数转换为ES5的生成器函数。4. @babel/plugin-transform-template-literals：用于将模板字面量转换为普通字符串拼接。1. @babel/plugin-transform-arrow-functions：用于将箭头函数转换为普通函数。6. @babel/plugin-transform-object-assign：用于将对象的扩展运算符转换为。]]></description><category></category></item><item><title><![CDATA[mac git使用ssh上传模式]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/127765291</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/127765291</guid><author>fuweihan00</author><pubDate>Wed, 09 Nov 2022 11:03:40 +0800</pubDate><description><![CDATA[git的ssh路径使用]]></description><category></category></item><item><title><![CDATA[前端图片、模块懒加载]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/126967716</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/126967716</guid><author>fuweihan00</author><pubDate>Wed, 21 Sep 2022 10:29:40 +0800</pubDate><description><![CDATA[前端技术]]></description><category></category></item><item><title><![CDATA[flex布局调节行和列的间距]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/126485769</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/126485769</guid><author>fuweihan00</author><pubDate>Tue, 23 Aug 2022 15:17:12 +0800</pubDate><description><![CDATA[flex布局小技巧]]></description><category></category></item><item><title><![CDATA[react hooks中为useState添加回调函数以及强刷函数]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/125621987</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/125621987</guid><author>fuweihan00</author><pubDate>Tue, 05 Jul 2022 16:06:58 +0800</pubDate><description><![CDATA[为useState添加回调函数：
  function useCallbackState(od) {
    const cbRef = useRef();
    const [data, setData] = useState(od);    useEffect(() => {
      cbRef.current && cbRef.current(data);
    }, [data]);    return [
      data,
      function (d, callback) {]]></description><category></category></item><item><title><![CDATA[git stash 命令的应用场景及详解（保存当前更改入缓存）]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/112779239</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/112779239</guid><author>fuweihan00</author><pubDate>Mon, 18 Jan 2021 14:19:12 +0800</pubDate><description><![CDATA[在更改未add之前：



1 git stash

能够将所有未提交的修改（工作区和暂存区）保存至堆栈中，用于后续恢复当前工作目录。



2 git stash save

作用等同于git stash，区别是可以加一些注释



3 git stash list

查看当前stash中的内容



4 git stash pop

将当前stash中的内容弹出，并应用到当前分支对应的工作目录上。



git stash clear

清除堆栈中的所有 内容
...]]></description><category></category></item><item><title><![CDATA[babel对promise的支持插件与配置]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/108813039</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/108813039</guid><author>fuweihan00</author><pubDate>Sat, 26 Sep 2020 15:58:38 +0800</pubDate><description><![CDATA[babel6:





babel7:




]]></description><category></category></item><item><title><![CDATA[使用better-scroll作业面时防止浏览器默认滚动偏移]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/108078263</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/108078263</guid><author>fuweihan00</author><pubDate>Tue, 18 Aug 2020 15:32:01 +0800</pubDate><description><![CDATA[const touchStartListener = function (e) {

   e.preventDefault();

};



componentDidMount() {

   document.addEventListener('touchmove', touchStartListener, { passive: false });

}



componentWillUnmount() {

   document.removeEventListener('...]]></description><category></category></item><item><title><![CDATA[解决ios双击页面上移问题]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/107757288</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/107757288</guid><author>fuweihan00</author><pubDate>Mon, 03 Aug 2020 09:57:24 +0800</pubDate><description><![CDATA[//在项目中测试不紧input/button这些表单控件有这个问题，p,div等也有问题，于是乎就直接在body开刀了

(function()

{

var agent = navigator.userAgent.toLowerCase(); //检测是否是ios

var iLastTouch = null; //缓存上一次tap的时间

if (agent.indexOf('iphone') &gt;= 0 || agent.indexOf('ipad') &gt;= 0)

{

document]]></description><category></category></item><item><title><![CDATA[react页面缓存]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/106694181</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/106694181</guid><author>fuweihan00</author><pubDate>Thu, 11 Jun 2020 18:08:55 +0800</pubDate><description><![CDATA[react-router-cache-route

官方文档：https://github.com/CJY0208/react-router-cache-route/blob/master/README_CN.md
]]></description><category></category></item><item><title><![CDATA[获取npm全局安装的路径]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/106540590</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/106540590</guid><author>fuweihan00</author><pubDate>Thu, 04 Jun 2020 10:32:39 +0800</pubDate><description><![CDATA[npm config get prefix
]]></description><category></category></item><item><title><![CDATA[js模拟事件(click等)]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/106473215</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/106473215</guid><author>fuweihan00</author><pubDate>Mon, 01 Jun 2020 15:24:41 +0800</pubDate><description><![CDATA[DOM结构：&lt;button id="btn"&gt;按钮&lt;/button&gt;

var btn=$('"#btn")[0]

//参数click是要模拟的事件名
var ev=new MouseEvent("click")

//向按钮派发事件
btn.dispatchEvent(ev)
]]></description><category></category></item><item><title><![CDATA[动态加载JS]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/105684943</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/105684943</guid><author>fuweihan00</author><pubDate>Wed, 22 Apr 2020 16:13:25 +0800</pubDate><description><![CDATA[/**
   * 动态加载JS
   * @param {string} url 脚本地址
   * @param {function} callback  回调函数
   */
  export default function dynamicLoadJs (url, callback) {
    var head = document.getElementsByTagName('head'...]]></description><category></category></item><item><title><![CDATA[scss下的1像素线]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/104352589</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/104352589</guid><author>fuweihan00</author><pubDate>Mon, 17 Feb 2020 08:31:26 +0800</pubDate><description><![CDATA[@mixin thinBorder($directionMaps: bottom, $color: #ccc, $radius:(0, 0, 0, 0), $position: after) {

// 是否只有一个方向

$isOnlyOneDir: string==type-of($directionMaps);



@if ($isOnlyOneDir) {

$directionMap...]]></description><category></category></item><item><title><![CDATA[ios 谓词的使用]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/90255825</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/90255825</guid><author>fuweihan00</author><pubDate>Thu, 16 May 2019 06:29:02 +0800</pubDate><description><![CDATA[&lt;pre name="code" class="objc"&gt;  //返回一个符合谓词条件的数组
  NSArray *newArray = [ array filteredArrayUsingPredicate:predicate];
  for (Person *person in newArray) {
  //NSLog(@"person name : %@...]]></description><category></category></item><item><title><![CDATA[根据时间戳(或NSDate) 计算时间差]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/89509449</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/89509449</guid><author>fuweihan00</author><pubDate>Thu, 25 Apr 2019 09:44:34 +0800</pubDate><description><![CDATA[NSDateFormatter *date = [[NSDateFormatteralloc]init];

[date setDateFormat:@"yyyy-MM-dd HH:mm:ss"];

NSDate *startD =[date dateFromString:startTime];

NSDate *endD = [date dateFromString:e...]]></description><category></category></item><item><title><![CDATA[iOS并发网络获取数据都完成后再执行其他操作]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/89070499</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/89070499</guid><author>fuweihan00</author><pubDate>Sun, 07 Apr 2019 15:52:23 +0800</pubDate><description><![CDATA[dispatch_group_t group = dispatch_group_create(); 

// 任务1
dispatch_group_enter(group); 
[self getAdHotTopDataBaseRequestisScu:^(BOOL isScu) { 
dispatch_group_leave(group...]]></description><category></category></item><item><title><![CDATA[oc和js交互]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/88657140</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/88657140</guid><author>fuweihan00</author><pubDate>Tue, 19 Mar 2019 10:53:04 +0800</pubDate><description><![CDATA[-(void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler{
  NSString *strURL = [...]]></description><category></category></item><item><title><![CDATA[iOS view上直接添加图片]]></title><link>https://blog.youkuaiyun.com/fuweihan00/article/details/83956046</link><guid>https://blog.youkuaiyun.com/fuweihan00/article/details/83956046</guid><author>fuweihan00</author><pubDate>Sun, 11 Nov 2018 09:12:09 +0800</pubDate><description><![CDATA[UIImage*image = [UIImageimageNamed:@&quot;bg&quot;];

view.layer.contents = (__bridge id)image.CGImage;

/** 设置对齐模式*/

view.layer.contentsGravity = kCAGravityResize;


 ]]></description><category></category></item></channel></rss>