JavaScript深入之执行上下文栈和变量对象
JS是单线程的语言,执行顺序肯定是顺序执行,但是JS 引擎并不是一行一行地分析和执行程序,而是一段一段地分析执行,会先进行编译阶段然后才是执行阶段。 翠花,上代码 例子一:变量提升 foo; // undefined var foo = function () { console.log(
JavaScript深入之带你走进内存机制
JS内存空间分为栈(stack)、堆(heap)、池(一般也会归类为栈中)。 其中栈存放变量,堆
JavaScript深入之4类常见内存泄漏及如何避免
垃圾回收算法 常用垃圾回收算法叫做标记清除 (Mark-and-sweep) ,算法由以下几步组成: 垃圾回收器创建了一个“roots”列表。roots 通常是代码中全局变量的引用。JavaScript 中,“window” 对象是一个全局变量,被当作 root 。window 对
mac installer 打开提示 EXC_BREAKPOINT (SIGTRAP) 修复
mac 安装器打开pkg崩溃,错误EXC_BREAKPOINT (SIGTRAP)修复 打开终端 输入 /usr/sbin/softwareupdate --install-rosetta --agree-
Blazor 未登录跳转Debug时NavigationManager报错修复
在MainLayout里面设置未登录时跳转到/login,NavigationManager会在Debug模式下抛出如下错误 "Microsoft.AspNetCore.Components.NavigationException: Exception of type 'Microsoft.AspN
mac Synology Drive同步时过滤node_modules
退出Synology Drive 访达前往文件夹~/.SynologyDrive/data/session(新版位于~/Library/Application Support/SynologyDrive/data/session)里面有数字文件夹,此数字文件夹对应的是创建同步项目的文件夹。 编辑1/
Announcing Windows 11 Insider Preview Build 25136
What’s new in Build 25136 File Explorer Tabs & Navigation Updates To help you work across multiple locations at the same time, the title bar of File E
Announcing Windows 11 Insider Preview Build 25131
Fixes [General] Fixed an issue causing some Insider PCs with certain AMD processors to bugcheck and roll back when attempting to upgrade to last week’
Announcing Windows 11 Insider Preview Build 25126
What’s new in Build 25126 Account settings page improvements In October, we introduced subscription management in Settings > Accounts
Announcing Windows 11 Insider Preview Build 25120
Changes and Improvements [General] As described in our blog post here, Windows Insiders who use the Dev Channel may get to try out new ideas, longer l