<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[DoubleJan的博客]]></title><description><![CDATA[面向运气编程]]></description><link>https://blog.youkuaiyun.com/DoubleJan</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; DoubleJan]]></copyright><item><title><![CDATA[# AntD中数据校验方式分类整理]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/103016661</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/103016661</guid><author>DoubleJan</author><pubDate>Mon, 11 Nov 2019 20:04:00 +0800</pubDate><description><![CDATA[一 概述
这篇文章主要整理了我在近期工作中，所使用Form表单组件，并进行数据校验的心得。整理出来了三种主要的校验需求，分类梳理了开发思路和方法，以及部分Form表单使用的注意事项。
这三种分类为：

数据联动
单一数据校验
多数据联动校验

二 数据联动
有时候我们表单中的某一个控件的值可能会在别的控件中使用，或者，我们需要对输入值格式化。
举个例子，加入我们需要做一个新增档案的功能，某种事物的...]]></description><category></category></item><item><title><![CDATA[6. Valid Parentheses]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/100026468</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/100026468</guid><author>DoubleJan</author><pubDate>Fri, 23 Aug 2019 00:09:18 +0800</pubDate><description><![CDATA[一 问题描述
Valid Parentheses
Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.
An input string is valid if:



Open brackets must be cl...]]></description><category></category></item><item><title><![CDATA[dva源码解析]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/99347186</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/99347186</guid><author>DoubleJan</author><pubDate>Mon, 12 Aug 2019 23:58:32 +0800</pubDate><description><![CDATA[一 dva的源码结构
dva的源码分为dva，和dva-core两个部分，dva/src下的文件负责处理对外的逻辑，包括数据校验，app对象封装，配置用户传入的路由等参数，并在最后启动了一个react应用。
dva-core的部分是dva核心功能实现部分，通过create方法返回一个dva对象给dva/src。使用内部的start方法初始化各种被dva/src配置过的属性。
二 dva/src/i...]]></description><category></category></item><item><title><![CDATA[Longest Common Prefix]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/95219729</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/95219729</guid><author>DoubleJan</author><pubDate>Tue, 09 Jul 2019 18:19:34 +0800</pubDate><description><![CDATA[一 问题描述
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string “”.
Example 1:
Input: ["flower"...]]></description><category></category></item><item><title><![CDATA[Roman to Integer]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/95219140</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/95219140</guid><author>DoubleJan</author><pubDate>Tue, 09 Jul 2019 18:15:44 +0800</pubDate><description><![CDATA[一 问题描述
Roman to Integer
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol       Value
I             1
V             5
X             10
L             50
C       ...]]></description><category></category></item><item><title><![CDATA[Palindrome Number]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/94989220</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/94989220</guid><author>DoubleJan</author><pubDate>Sun, 07 Jul 2019 15:22:20 +0800</pubDate><description><![CDATA[一 问题描述
Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Input: 121
Output: true

Example 2:
Input: -121...]]></description><category></category></item><item><title><![CDATA[Reverse Integer]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/94988633</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/94988633</guid><author>DoubleJan</author><pubDate>Sun, 07 Jul 2019 14:27:37 +0800</pubDate><description><![CDATA[一 问题描述
Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.
Example 1:
Input: 123
Output: 321

Example 2:
Input: -123
Output: -321

Example 3:
Input: 120
Output: 21

Note:
Assu...]]></description><category></category></item><item><title><![CDATA[Two Sum]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/94754125</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/94754125</guid><author>DoubleJan</author><pubDate>Fri, 05 Jul 2019 19:25:17 +0800</pubDate><description><![CDATA[一 问题描述
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not...]]></description><category></category></item><item><title><![CDATA[nodejs 和 npm安装配置与常见问题]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/77429299</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/77429299</guid><author>DoubleJan</author><pubDate>Sun, 20 Aug 2017 15:13:47 +0800</pubDate><description><![CDATA[1.新版nodejs安装会连带安装npm，不需要单独安装，所以，在官网下载windows  .msi 安装程序一直下一步即可安装过程手动选择一下路径2.配置环境变量nodejs环境变量需要两个NODE_PATH 和 Path Path就是nodejs安装的根目录 
NODE_PATH 就是根目录下的node_modules 目录以上配置只是暂时的。然后win + R，输入cmd 打开命令提示符，然后]]></description><category></category></item><item><title><![CDATA[Js分割字符串 - split]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/77429183</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/77429183</guid><author>DoubleJan</author><pubDate>Sun, 20 Aug 2017 15:00:17 +0800</pubDate><description><![CDATA[如果需要分割字符串可以使用split函数，像这样var str = 'HHGG\nKK\n\nLL\n\n\nFF\nDD\n';
var arr = str.split('\n');这个用一个字符串调用这个函数并传入一个分隔符，split将根据这个参数将这个字符串分割成一个字符串数组，那么问题来了，上面的这两部操作以后，arr.length即arr数组长度为多少呢？答案是9 ！ ！ ！因为如果用s]]></description><category></category></item><item><title><![CDATA[Js中的事件委托]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/72972549</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/72972549</guid><author>DoubleJan</author><pubDate>Fri, 09 Jun 2017 22:32:48 +0800</pubDate><description><![CDATA[DOM 2 中，js加入了事件委托的支持； 
当我们从后端拿数据的时候，往往要根据这些数据生成相应的元素，或界面，之后，可能要进行进一步的业务操作，这其中，就可能会用到事件。 
在Dom1中，事件处理使用类似 obj.onclick这样的属性绑定函数来实现，这固然简单方便，但是，当我们需要自动添加的事件有成百上千个以后，页面将会有上千个事件，这是很可怕的一件事，于是，在DOM2标准中，就提供了事件委]]></description><category></category></item><item><title><![CDATA[Js中作用域对于数组绑定事件的影响]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/72972515</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/72972515</guid><author>DoubleJan</author><pubDate>Fri, 09 Jun 2017 22:26:05 +0800</pubDate><description><![CDATA[Js中作用域对于数组绑定事件的影响Js中，分割作用域的只有函数，也就是说，当你没有进入一个函数内，那么你当前的作用域，你当前的this指针，和其他的变量都是由外围函数管理。首先我们看一段代码for(var i = 0;i<imgs.length;i++){
    imgs[i].onclick = function(){
        alert(imgs.src);
    }
}
这里很明显]]></description><category></category></item><item><title><![CDATA[Js中的函数类型及声明和表达式]]></title><link>https://blog.youkuaiyun.com/DoubleJan/article/details/53671078</link><guid>https://blog.youkuaiyun.com/DoubleJan/article/details/53671078</guid><author>DoubleJan</author><pubDate>Thu, 15 Dec 2016 15:27:32 +0800</pubDate><description><![CDATA[Js中比较有趣的恐怕就是函数类型了：function value(){
return value;
}
alert(typeof value);    //“function”
typeof是一个获得操作数类型的操作符，打印结果是function类型，这和传统的c和c++之类的编程语言不一样，在Js中，function是一个类型。并且，实际上也是一个对象，因为，每一个函数实际上也是Object对象的]]></description><category></category></item></channel></rss>