<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[InDoKer的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/InDoKer</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; InDoKer]]></copyright><item><title><![CDATA[【baidu入职笔记】]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/126072396</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/126072396</guid><author>InDoKer</author><pubDate>Sat, 30 Jul 2022 16:41:44 +0800</pubDate><description><![CDATA[培训]]></description><category></category></item><item><title><![CDATA[2021秋招面经]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/120617061</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/120617061</guid><author>InDoKer</author><pubDate>Tue, 05 Oct 2021 19:25:00 +0800</pubDate><description><![CDATA[美团
笔试把我乱杀

BiliBili
简历石沉大海

虾皮
笔试把我乱杀

网易
笔试把我乱杀
简答：适配器模式和装饰器模式的区别？

完美
一面

z-index是相对于谁的z轴？
HTTP是如何实现的
WeakMap和WeakSet 和 Map和Set的区别
Map和Set的作用
apply &amp; bind的用法
let 暂时机制是如何实现的
promise的catch加在then前和then后的区别
引用类型和基本类型的区别(存储方式)
线程和进程
React diff算法
前端路由是如何实现]]></description><category></category></item><item><title><![CDATA[微信小程序学习记录]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/119730086</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/119730086</guid><author>InDoKer</author><pubDate>Mon, 16 Aug 2021 20:44:25 +0800</pubDate><description><![CDATA[1. 概念


渲染逻辑
web页面的渲染线程（GUI渲染线程，重绘、回流时执行）和脚本线程（js引擎线程）互斥，但小程序与此不同，它的逻辑层和渲染层可以并行工作，逻辑层由jscore组成，渲染层则包含wxml模版和wxss样式。小程序总的来说是数据驱动，即jscore产生和处理数据，交给native（微信客户端），然后微信客户端通过多个webview渲染。
逻辑层和渲染层通信模型图如下

在渲染层，宿主环境会把wxml转换成对应的js对象，在逻辑层数据变化时，宿主环境提供的setdata方法会把数据从逻辑]]></description><category></category></item><item><title><![CDATA[2021前端提前批笔面试信息汇总]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/118211906</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/118211906</guid><author>InDoKer</author><pubDate>Fri, 25 Jun 2021 11:49:02 +0800</pubDate><description><![CDATA[Shopee
笔试（24选择+1算法）


css创建新的合成层


正则（3道选择）


Number.Max_Safe_Integer === Math.pow(2,53)-1
安全（Safe）在本文中的提到的意思是指能够准确地表示整数和正确地比较整数。比如
Math.pow(2,64)=== Math.pow(2,64)+1 //true

因为2的64次方大于最大安全值，所以无法正确比较


CSS3选择器 :nth-child(n) 选择器匹配属于其父元素的第 N 个子元素，不论元素的类型。


]]></description><category></category></item><item><title><![CDATA[同花顺软件前端开发笔试题目]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/118033298</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/118033298</guid><author>InDoKer</author><pubDate>Fri, 18 Jun 2021 22:46:26 +0800</pubDate><description><![CDATA[1.JS包括哪些数据类型，请分别编写3种以上类型的判断函数，如isString（）
A:Js数据类型分为基本类型和引用数据类型
值类型——Number、String、Boolean、Null、Undefined、Symbol
引用类型——Object、Array、Function
判断方式 1.typeof
console.log(typeof 1); //number
console.log(typeof '1'); //string
console.log(typeof undefined); //un]]></description><category></category></item><item><title><![CDATA[孔子学院项目中遇到的难点及解决方案]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/117969276</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/117969276</guid><author>InDoKer</author><pubDate>Wed, 16 Jun 2021 23:19:22 +0800</pubDate><description><![CDATA[1. 跨域
问题：在后端设置allow-origin后 chrome上独有的跨域问题（firefox上不存在）
原因：
Chrome 51 开始，浏览器的 Cookie 新增加了一个SameSite属性，用来防止 CSRF 攻击和用户追踪。SameSite可以设置三个值：Strict、Lax、None
Strict最为严格，完全禁止第三方 Cookie，跨站点时，任何情况下都不会发送 Cookie。
Lax规则稍稍放宽，分情况处理，具体如下

chrome自版本80之前，SameSite默认是None，80]]></description><category></category></item><item><title><![CDATA[React中setstate异步执行的问题]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/117933760</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/117933760</guid><author>InDoKer</author><pubDate>Tue, 15 Jun 2021 22:55:04 +0800</pubDate><description><![CDATA[在React中，如果由React引发的时间处理，如Onclick引发的时间处理，调用setState不会同步更新this.state,只有在某些情况下setState会同步更新this.state
1.什么是setstate的同步与异步？
import  { FC,ReactElement, useEffect, useState } from "react";

const Test:FC = ():ReactElement=&gt;{


    const [a,seta] = useState(0)]]></description><category></category></item><item><title><![CDATA[闭包的理解]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/117305587</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/117305587</guid><author>InDoKer</author><pubDate>Thu, 27 May 2021 16:39:34 +0800</pubDate><description><![CDATA[1. 闭包的定义
闭包的产生条件
当一个嵌套的内部函数引用了的嵌套的外部函数的变量时，就产生了闭包
function fn1(){
	var a = 2
	var b = 'abc'
	function fn2() {//定义时就会产生
		console.log(a)
	}
}
fn1()

此时fn2内部产生了闭包，但只包含a


闭包的定义
（可以使用chrome调试查看）
浅：闭包是嵌套的内部函数
深：包含被引用变量（函数）的对象
两个点：嵌套 and 引用
2.闭包的作用和生命周期
2.1 将函数]]></description><category></category></item><item><title><![CDATA[变量提升与函数提升]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/117302673</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/117302673</guid><author>InDoKer</author><pubDate>Wed, 26 May 2021 19:58:21 +0800</pubDate><description><![CDATA[1.变量声明提升
(1) var声明的变量，在定义语句之前就可以访问到，值为undefined
var a = 3
function fn () {
    console.log(a);//undefined
    var a = 4
}
fn()

相当于
var a = 3
function fn () {
	var a
    console.log(a);//undefined
    a = 4
}
fn()

2.函数声明提升
(2)function声明的函数，在之前就可以直接调用，值为函数]]></description><category></category></item><item><title><![CDATA[前端原型与原型链的原理]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/117263415</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/117263415</guid><author>InDoKer</author><pubDate>Tue, 25 May 2021 22:40:24 +0800</pubDate><description><![CDATA[1.函数的prototype属性
每个函数都有一个prototype属性，它默认指向一个空Object实例对象（原型对象）ps：只有Object例外，即Object.prototype instanceof Object 为   false
function A(){}//内部语句：this.prototype = {}
console.log(A.prototype);//默认指向一个空对象



原型对象中有一个属性constructor，它指向函数对象
console.log(A.prototype.]]></description><category></category></item><item><title><![CDATA[关于普通函数和箭头函数中的this指向问题]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/117233273</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/117233273</guid><author>InDoKer</author><pubDate>Tue, 25 May 2021 17:28:22 +0800</pubDate><description><![CDATA[普通函数中的this指向问题
普通函数的this指向如果用一句话概括的讲，是最后调用它的对象，下面分情况来看
1.该函数没有被上一级调用，那么this指向window
 var name = 'mt'
 function mt (){
     var name = 'ff'
     console.log(this.name);//mt
 }
 mt()

这里的mt函数没有被上一级调用，所以它的this指向最后的调用的对象——全局window
var mt = 'mt'
     var obj = ]]></description><category></category></item><item><title><![CDATA[前端实习面试经验汇总]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/115662126</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/115662126</guid><author>InDoKer</author><pubDate>Fri, 16 Apr 2021 16:02:47 +0800</pubDate><description><![CDATA[前端面试题汇总（不定期更新）
第一波前端面试比想象中问的面比较小，主要集中在js，尤其是es6的一些特性上，还有就是项目经验，项目中展开的问题。可能是这些公司对实习生要求没那么高？这次没有问到网络相关的，比如tcp、http啥的，不过感觉以后不会这么简单。



有鱼（一面挂）
1.promise和settimeout
笔试，面试都有问到
主要是给一道带有promise和settimeout方法的程序题，手写输出的顺序，当时给我的是这道题
Promise.resolve().then(
          ]]></description><category></category></item><item><title><![CDATA[var、let、const三者间的区别]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/111303687</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/111303687</guid><author>InDoKer</author><pubDate>Wed, 16 Dec 2020 22:17:09 +0800</pubDate><description><![CDATA[主要是var和let两者的区别，const放在最后说
1.var是ES5中的，let是ES6中的
ES5不存在块级作用域的概念，只有全局作用域和函数作用域。在ES6之前，解决这个问题主要靠闭包(closure)

闭包指的是有权访问另一个函数作用域中变量的函数，常见的方式就是在函数中创建函数，借此突破作用链域。
function say666(){
      var num =665;
      var sayalert = function(){
        alert(num)
      }
]]></description><category></category></item><item><title><![CDATA[新机子使用git配置SSH步骤]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/111130996</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/111130996</guid><author>InDoKer</author><pubDate>Sun, 13 Dec 2020 16:59:34 +0800</pubDate><description><![CDATA[新机子不配ssh没权限，clone的时候会报下面的错误
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Failed during: git fetch origin master:refs/remotes/ori]]></description><category></category></item><item><title><![CDATA[从零开始配置vue开发环境(win10)]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/110290313</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/110290313</guid><author>InDoKer</author><pubDate>Sat, 28 Nov 2020 19:47:15 +0800</pubDate><description><![CDATA[从零开始配置vue开发环境1.node.js安装2.切换淘宝镜像cnpm3.安装脚手架4.安装node_modules
1.node.js安装
nodejs官方下载地址
下完安装
没啥要注意的 别忘了添加环境变量
Add to PATH勾上就行

2.切换淘宝镜像cnpm
npm install nrm -g --save    安装nrm
nrm ls    查看默认配置
nrm use cnpm    使用淘宝镜像


3.安装脚手架
npm install -g vue-cli 


4.安装node]]></description><category></category></item><item><title><![CDATA[解决 cannot import name ‘xxxx‘ from ‘__main__‘ 问题]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/108940128</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/108940128</guid><author>InDoKer</author><pubDate>Tue, 06 Oct 2020 15:58:56 +0800</pubDate><description><![CDATA[问题：
// A code block
from . import xxxx

在同包下导入其他文件出现
cannot import name 'xxxx' from '__main__' 

包内的文件相互导入分两种，用绝对路径和相对路径，用.或者…都是第二种，相对路径。
重点是，相对导入的路径依赖于当前模块的_name_，是根据它的值去找平级或者上级文件。
通过print（name）可知当前文件名为__main__
所以说，从物理上来说，这两个文件确实都在同一个目录下，但仅此就认为from . impo]]></description><category></category></item><item><title><![CDATA[Scrapy爬取图片出现Missing scheme in request url: h]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/108794503</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/108794503</guid><author>InDoKer</author><pubDate>Fri, 25 Sep 2020 13:12:30 +0800</pubDate><description><![CDATA[// 原来
item['url']=img_url

// 更正
list1=[]
list1.append(img_url)
item['url']=list1


如果单纯获取文本，那么只需start_urls是一个list；
而如果获取图片，则必须start_urls与item中存储图片路径字段这两者必须都是 list。

...]]></description><category></category></item><item><title><![CDATA[‘bytes‘ object is not callable的解决方案]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/108784529</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/108784529</guid><author>InDoKer</author><pubDate>Thu, 24 Sep 2020 21:59:31 +0800</pubDate><description><![CDATA[scrapy中遇到'bytes' object is not callable
源码 def parse(self, response):
print(response.body())
pass
去掉括号
print(response.body)

]]></description><category></category></item><item><title><![CDATA[深度学习1.win10 + python3.6 + CUDA9.0 + cudnn v7.3 + tensorflow1.12.0]]></title><link>https://blog.youkuaiyun.com/InDoKer/article/details/106355055</link><guid>https://blog.youkuaiyun.com/InDoKer/article/details/106355055</guid><author>InDoKer</author><pubDate>Tue, 04 Aug 2020 18:08:05 +0800</pubDate><description><![CDATA[环境搭建anaconda下载安装cuda+cudnn下载安装tensorflow安装keras安装
anaconda下载安装
官网下的慢
上清华源
链接: anaconda.
下载
教程给的

安装过程有一步
问你要不要加到环境变量中
勾上
其他就正常点next完事
cuda+cudnn下载安装
先看自己gpu对应的cuda型号
nvidia控制面板-》帮助-》系统信息-》组件
找到

确认版本号后下载
链接: cuda.
下载完安装狂点下一步
最后cmd查看版本

cuda安装成功！
下载cudnn对应版]]></description><category></category></item></channel></rss>