Giter Club home page Giter Club logo

Comments (1)

binperson avatar binperson commented on September 22, 2024

首先介绍一下自己

js内存空间 -> this.a

JS变量类型分为两种即 原始类型(Number, String, Boolean, null, undefined)与引用类型(Object)

  • 栈: 遵循着后进先出,先进后出的原则, 属于一级缓存, 地位相当于cpu的寄存器, 由编译器自动分配释放, 读写快, 存储的都是固定值(也就是原始类型)
  • 堆: 属于二级缓存,由我们分配释放, 要是没有手动的释放,在调用结束后可能由GC回收,其生命周期由虚拟机的垃圾回收算法来决定。存储的是引用类型;

js内存空间的那点事

this.a -> javascript中的this指向问题

作用域绑定 3种

  • =>
  • let that = this
  • bind

原型链

setTimeout 会发生什么

setTimeout(() => {}, 0)

promise的实现 -> catch err -> reject

事件循环 -> event-loop-timers-and-nexttick

css3用了些什么

  • 2种方式实现 长宽100到300 过渡
  • 2种方式居中

浏览器缓存的几种

TCP/IP协议3次握手 TCP/IP协议四层模型

from blog.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.