<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[github_39155605的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_39155605</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_39155605]]></copyright><item><title><![CDATA[查找字符串 indexof 使用  ~ 符号]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/106993494</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/106993494</guid><author>github_39155605</author><pubDate>Sun, 28 Jun 2020 10:13:26 +0800</pubDate><description><![CDATA[对每一个比特位执行非（NOT）操作。NOT a  结果为 a 的反转（即反码）；
即把0和1全部取反
if (~str.indexOf(searchFor))

{
// searchFor 包含在字符串中
}

else

{
// searchFor 不包含在字符串中
}


]]></description><category></category></item><item><title><![CDATA[正则表达式]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/106135361</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/106135361</guid><author>github_39155605</author><pubDate>Fri, 15 May 2020 09:58:07 +0800</pubDate><description><![CDATA[##正则表达式（Regular Expression）
课堂主题
​     1）正则的创建
​	    2）正则的匹配方法
​	    3）元字符
​	    4）字符集合
​	   5）边界
​	   6）分组
7）反向引用

​       8）数量词汇
​       9）匹配模式

课堂目标

理解正则中的基础知识
理解正则中的各种概念
会使用正则查找替换字符
能使用正则在实际中运用

知识点
###字符串操作

查找字符串中的数字；
正则如何如实现

正则的创建

字面量创建
通过构造函数

正]]></description><category></category></item><item><title><![CDATA[git 操作]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/106057541</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/106057541</guid><author>github_39155605</author><pubDate>Mon, 11 May 2020 16:50:27 +0800</pubDate><description><![CDATA[git 常规操作
创建分支，并切换到分支
git checkout -b dev
查看一下现在的分支状态:
git branch
推送到远程服务器
把新建的本地分支push到远程服务器，远程分支与本地分支同名（当然可以随意起名）：
git push origin dev:dev
查看远程所有分支
git branch -a
删除远程分支
我比较喜欢的简单方式，推送一个空分支到远程分支，其实就相当于删除远程分支：
git push origin :dbg_lichen_star
也可以使用：
git push]]></description><category></category></item><item><title><![CDATA[开发 hbuilderx 中，wifi 链接 adb 报错 adb server version (36) doesn't match this client (41); killing..解决]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/105690158</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/105690158</guid><author>github_39155605</author><pubDate>Wed, 22 Apr 2020 18:56:08 +0800</pubDate><description><![CDATA[开发 hbuilderx 中，wifi 链接 adb 报错 adb server version (36) doesn’t match this client (41); killing…解决
终端查询 adb version
会出现 mac 使用 adb 的版本还有安装的位置，
我的在  /usr/local/bin/adb
使用这个替换 hbuilderx 下的 adb
hbuilderx a...]]></description><category></category></item><item><title><![CDATA[深拷贝 方法]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/105608860</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/105608860</guid><author>github_39155605</author><pubDate>Sun, 19 Apr 2020 00:46:00 +0800</pubDate><description><![CDATA[深拷贝 方法

遍历对象

 function deepCopy(obj) {
        let newObj = Array.isArray(obj) ? [] : {};
        for (let i in obj) {
            if (obj.hasOwnProperty(i)) {
                if (typeof obj[i] === "...]]></description><category></category></item><item><title><![CDATA[js 精确判断数据类型]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/105532286</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/105532286</guid><author>github_39155605</author><pubDate>Wed, 15 Apr 2020 12:34:04 +0800</pubDate><description><![CDATA[js 精确判断数据类型
Object.prototype.toString.call(arr);

	let arr = [];
	let obj = {};
	console.log(typeof arr);  // object
	console.log(typeof obj);  // object
	// typeof 类似 instanceof 会去找原型链上的数据类型
	
	// 精确...]]></description><category></category></item><item><title><![CDATA[css 权重]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/105409549</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/105409549</guid><author>github_39155605</author><pubDate>Thu, 09 Apr 2020 14:10:46 +0800</pubDate><description><![CDATA[第一等级：代表内联样式，如style=""，权值为 1000
第二等级：代表id选择器，如#content，权值为100
第三等级：代表类，伪类和属性选择器，如.content，权值为10
第四等级：代表标签选择器和伪元素选择器，如div p，权值为1
注：通用选择器（*），子选择器（&gt;），和相邻同胞选择器（+）并不在这个等级中，所以他们的权值为0

...]]></description><category></category></item><item><title><![CDATA[less 函数]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/105357911</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/105357911</guid><author>github_39155605</author><pubDate>Tue, 07 Apr 2020 09:54:11 +0800</pubDate><description><![CDATA[less 常用函数–雪碧图

.stitches-sprite(@x: 0, @y: 0, @width: 0, @height: 0) {
    background-position: @x @y;
    width: @width;
    height: @height;
}

.sprite {
    background-image: url(spritesheet.png); ...]]></description><category></category></item><item><title><![CDATA[DOM]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/103807599</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/103807599</guid><author>github_39155605</author><pubDate>Thu, 02 Jan 2020 17:04:13 +0800</pubDate><description><![CDATA[DOM
javascript 的组成部分

DOM (document object model) 文档对象模型
BOM (browers object model) 浏览器对象模型
ECMAScript js 的核心

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-oSa8qh3z-1577955827557)(./DOMltree.gif)]
DOM 节点

节...]]></description><category></category></item><item><title><![CDATA[vue v-for实现hover效果,点击效果]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/103400405</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/103400405</guid><author>github_39155605</author><pubDate>Thu, 05 Dec 2019 10:49:30 +0800</pubDate><description><![CDATA[&lt;template&gt;

    &lt;ul class="item"&gt;

        &lt;li v-for="(item, index) in Arr" :key="index"

            :class="{'hoverBg':index==hoverIndex}"

            @mouseover="hoverIndex = index...]]></description><category></category></item><item><title><![CDATA[js处理时间，ios 兼容问题，显示 NAN]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/102625456</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/102625456</guid><author>github_39155605</author><pubDate>Fri, 18 Oct 2019 14:51:04 +0800</pubDate><description><![CDATA[new Date(start_time)
start_time 参数格式不能是 - 中横杠，可以是 / 斜杠

]]></description><category></category></item><item><title><![CDATA[Math方法]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/102475017</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/102475017</guid><author>github_39155605</author><pubDate>Thu, 10 Oct 2019 09:45:04 +0800</pubDate><description><![CDATA[Math方法
提供了与数学操作有关的一些属性与方法

与其它内置对象（如Date、Array等）不同，Math不能作为一个函数去使用，它只是一个对象常用属性

常用属性

PI

圆周率：Math.PI=π≈3.14159



常用方法
取整相关

ceil(x)

返回大于或等于 x 的最小整数，即：向上取整
参数

x：任意数值




floor(x)

返回小于或等于 x 的最小整数，即...]]></description><category></category></item><item><title><![CDATA[对象方法和json方法]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/102475005</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/102475005</guid><author>github_39155605</author><pubDate>Thu, 10 Oct 2019 09:44:46 +0800</pubDate><description><![CDATA[对象方法

Object.keys(obj)
返回一个由 key 组成的数组
Object.values(obj)
返回一个由 value 组成的数组

删除对象中的元素
delete obj.key

JSON
JSON是什么？
JSON是一种轻量级的数据交换格式。因为语言的种类繁多，且不同的语言对于数据有不同的定义，例如：
php 中的数组，分为两种形式，一种：索引数组，这个与我们 JS 中的...]]></description><category></category></item><item><title><![CDATA[数组方法]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/102474990</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/102474990</guid><author>github_39155605</author><pubDate>Thu, 10 Oct 2019 09:44:04 +0800</pubDate><description><![CDATA[数组方法
基础添加和删除


push

将一个或多个元素添加到数组的结尾，并返回该数组的长度



pop

删除数组中的最后一位，并返回删除的值



unshift

将一个或多个元素添加到数组的开头，并返回该数组的新长度



shift

删除数组中的第一位，并返回删除的值



进阶删除、添加、替换方法

splice(start[，num，item1，item2…])

可以用于删除...]]></description><category></category></item><item><title><![CDATA[字符串方法]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/102474973</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/102474973</guid><author>github_39155605</author><pubDate>Thu, 10 Oct 2019 09:43:25 +0800</pubDate><description><![CDATA[字符串方法
创建字符串

字面量的创建方式

var str = 'kaikeba';
console.log(typeof str); //string


字符串对象的创建方式

var str = new String('kaikeba');
console.log(typeof str); //object

查找类方法：

charAt( index )

参数

index : 0 ~...]]></description><category></category></item><item><title><![CDATA[js获取计算后的css]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/101430770</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/101430770</guid><author>github_39155605</author><pubDate>Thu, 26 Sep 2019 11:46:35 +0800</pubDate><description><![CDATA[function getCss(obj) {
        if (obj.currentStyle) {
        // 兼容ie
            return obj.currentStyle;
        } else {
            return getComputedStyle(obj)
        }
    }


]]></description><category></category></item><item><title><![CDATA[js 模版字符串增加条件判断]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/97803602</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/97803602</guid><author>github_39155605</author><pubDate>Tue, 30 Jul 2019 17:49:36 +0800</pubDate><description><![CDATA[用 三元判断或者自执行函数内使用if

 for ( let i = 0; i &lt; data.length; i++ ) {
        const html = `&lt;li class="fl t-left"&gt;&lt;div class="target t-center"&gt;
                                &lt;p&gt;${data[...]]></description><category></category></item><item><title><![CDATA[less 循环]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/97803164</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/97803164</guid><author>github_39155605</author><pubDate>Tue, 30 Jul 2019 17:46:21 +0800</pubDate><description><![CDATA[循环出图片的背景色还有子类元素的
  			// 循环出图片
            .generate-columns(19);

            .generate-columns(@n, @i: 1) when (@i =&lt; @n) {
                &amp;:nth-child(@{i}) {
                background-imag...]]></description><category></category></item><item><title><![CDATA[js 开关设置遇到的问题]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/97683236</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/97683236</guid><author>github_39155605</author><pubDate>Mon, 29 Jul 2019 21:17:35 +0800</pubDate><description><![CDATA[设置自定义属性的时候，
如果设置的属性名称是 title ，或者其他的w3c内置属性，那么在js中获取到的值是字符串类型
如果是其他的，比如onoff，获取到的是布尔类型

...]]></description><category></category></item><item><title><![CDATA[vscode 使用 prettier 进行js文件的 eslint规则 格式化]]></title><link>https://blog.youkuaiyun.com/github_39155605/article/details/97659589</link><guid>https://blog.youkuaiyun.com/github_39155605/article/details/97659589</guid><author>github_39155605</author><pubDate>Mon, 29 Jul 2019 17:40:46 +0800</pubDate><description><![CDATA[安装 prettier 插件
然后在设置内，勾选
Prettier: Eslint Integration
使用 eslint规则

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