<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[stone_1996的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/stone_1996</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; stone_1996]]></copyright><item><title><![CDATA[关于this指向的面试题，]]></title><link>https://blog.csdn.net/stone_1996/article/details/115036958</link><guid>https://blog.csdn.net/stone_1996/article/details/115036958</guid><author>stone_1996</author><pubDate>Sat, 20 Mar 2021 23:10:59 +0800</pubDate><description><![CDATA[一道关于js的this指向的面试题
前前后后学了半个月，今天终于是理解了this指向、闭包、作用域了，撒花庆祝。
之前看下面这道面试题全程懵逼，现在瞬间懂了。
如果我说错了麻烦大家评论一下嗷，我及时改正。
function a(xx){
  this.x = xx;
  return this
};
var x = a(5);
var y = a(6);

console.log(x.x)  // undefined
console.log(y.x)  // 6

结合复习的作用域知识，重新梳理流程：
va]]></description><category></category></item><item><title><![CDATA[力扣菜鸡的刷题记录]]></title><link>https://blog.csdn.net/stone_1996/article/details/110536843</link><guid>https://blog.csdn.net/stone_1996/article/details/110536843</guid><author>stone_1996</author><pubDate>Thu, 03 Dec 2020 16:00:02 +0800</pubDate><description><![CDATA[day1
1、统计所有小于非负整数 n 的质数的数量。
思路：
因式分解4到8
4: 1 * 4 ， 2 * 2 ，4 * 1
5: 1 * 5 ，sqrt(5) * sqrt(5) ，5 * 1
6: 1 * 6 ，2 * 3， sqrt(6) * sqrt(6) ，3 * 2， 2 * 1
其实可以看出，以开平方根为boundary，只要能被boundary前面数整除，该数就不是质数
var countPrimes = function(n) {
    if(n==0||n==1||n==2){
  ]]></description><category></category></item><item><title><![CDATA[前端项目js部分的tips]]></title><link>https://blog.csdn.net/stone_1996/article/details/109613146</link><guid>https://blog.csdn.net/stone_1996/article/details/109613146</guid><author>stone_1996</author><pubDate>Wed, 11 Nov 2020 10:30:28 +0800</pubDate><description><![CDATA[##项目中js的那些tips
大纲JS函数用法1、replace()
JS函数用法
1、replace()
背景：后端传来的姓名为类似“Taylor Alison Swift”这样带空格的字符串，甲方希望将个人账户密码初始为没有空格的姓名；
解决方案：replace();
replace()使用方法：
var employeeName = "Taylor Alison Swift"
//非贪婪匹配，只匹配第一个
document.write(employeeName.replace(/ /,"")) //输]]></description><category></category></item><item><title><![CDATA[计算机网络知识总结]]></title><link>https://blog.csdn.net/stone_1996/article/details/109591891</link><guid>https://blog.csdn.net/stone_1996/article/details/109591891</guid><author>stone_1996</author><pubDate>Tue, 10 Nov 2020 09:17:13 +0800</pubDate><description><![CDATA[计算机网络知识总结
一、计算机网络
1、 基本概念
计算机网络：将独立计算机通过通信设备与线路连接起来，由软件实现信息传递
计算机网络组成部分：硬件、软件、协议
计算机网络功能组成：通信子网（数据通信）、资源子网（资源共享/数据处理）
2、标准化
法定标准（权威机构osi）、事实标准（头部企业。如tcp/ip），RFC（标准化部门，可以向他提出自己的一个标准化建议）
3、速率、带宽
速率即数据率，或者称为数据传输率 1byte（字节）=8bit；
带宽：网络通信线路的传输能力（网络设备能支持的最高速率），入]]></description><category></category></item></channel></rss>