ZHANGYU.dev

All about "JavaScript"

The Principles Behind Front-end Routing

JavaScript

Explanations of the history package in JavaScript, including pushState and replaceState methods, and a brief overview of how React Router uses history for navigation.

Read more about The Principles Behind Front-end Routing

前端路由的实现原理

JavaScript

A brief overview of the history library and its usage in React Router, explaining pushState, replaceState, and history event handling.

Read more about 前端路由的实现原理

Yarn 2的Monorepo开发实践

JavaScript

Monorepo manages multiple packages in a single repository, Yarn workspace simplifies package management for monorepos efficiently.

Read more about Yarn 2的Monorepo开发实践

 如何使用Proxy拦截Map和Set的操作

JavaScript

Proxy can intercept regular object operations using set and get functions. Custom interceptors can be used to intercept calls to Map or Set methods.

Read more about  如何使用Proxy拦截Map和Set的操作

 如何利用Proxy实现一个响应式对象

JavaScript

ES6 Proxy creates object proxy with get and set interceptors for observer patterns and dependency tracking.

Read more about  如何利用Proxy实现一个响应式对象

《你不知道的JavaScript》(上卷)笔记

JavaScript

Description scope, scope lookup, dynamic scope changes, 'this' binding rules, immutability, [[Get]] and [[Put]] operations, and property existence in JavaScript.

Read more about 《你不知道的JavaScript》(上卷)笔记

60行代码,造一个动画库轮子

JavaScript

Explanation the core method for animating in JavaScript using requestAnimationFrame, followed by a tutorial on creating a basic animation library.

Read more about 60行代码,造一个动画库轮子

从零搭建一个qiankun微前端demo

JavaScript

Introducing micro-frontends to manage multiple H5 pages efficiently with qiankun, including setup steps for both regular and Umi.js projects.

Read more about 从零搭建一个qiankun微前端demo

利用Formik解决表单痛点

JavaScriptReact

Comparison of form handling in jQuery, ant design (for back-end), and Formik in React, with examples and recommendations.

Read more about 利用Formik解决表单痛点

浅谈策略模式和柯里化的使用

JavaScript

Discussion on using strategy pattern to optimize message handling by removing if-else blocks and utilizing currying for function flexibility in development.

Read more about 浅谈策略模式和柯里化的使用

Jest 学习笔记(一)

JavaScript

Install Jest and Babel for testing with examples of matchers like toBe, toEqual, not, toContain, toThrow, async testing.

Read more about Jest 学习笔记(一)

JsSIP踩坑笔记

JavaScript

Implemented page calling with WebRTC using JsSIP, requiring understanding of WebRTC principles including NAT traversal and server roles.

Read more about JsSIP踩坑笔记

MediaQueryList全解析

JavaScript

MediaQueryList manages media queries and notifies listeners of changes, with properties like matches, media, onchange, and methods like addListener, removeListener, and compatibility notes.

Read more about MediaQueryList全解析

React-Redux 源码阅读笔记

JavaScriptReact

Description a detailed analysis of react-redux, explaining the principles of Provider, connect, and Subscription, offering insights and queries on connectAdvanced functionality.

Read more about React-Redux 源码阅读笔记

Redux的中间件applyMiddleware解析

JavaScript

Reading and analyzing Redux source code, particularly impressed by middleware implementation, leading to improved understanding of TypeScript.

Read more about Redux的中间件applyMiddleware解析

Redux源码阅读笔记

JavaScript

Explanations and code snippets of key Redux functionalities such as createStore, combineReducers, bindActionCreators, compose, and applyMiddleware, emphasizing closure usage in the source code.

Read more about Redux源码阅读笔记

RxJS学习笔记(七)回压控制

JavaScript

RxJS introduces control operators like throttle, debounce, distinct, ignoreElements, etc., for managing data flow efficiently.

Read more about RxJS学习笔记(七)回压控制

RxJS学习笔记(六)过滤类操作符

JavaScript

Explanation and examples of filtering, taking, and skipping operations in RxJS, such as filter, take, takeLast, takeWhile, takeUntil, skip, skipWhile, skipUntil, first, and last. Talent discussion included.

Read more about RxJS学习笔记(六)过滤类操作符

RxJS学习笔记(五)辅助类操作符

JavaScript

RxJS mathematical operators count, min, max, reduce work after upstream completion. Conditional boolean operators include every, find, findIndex, isEmpty, defaultEmpty.

Read more about RxJS学习笔记(五)辅助类操作符

RxJS学习笔记(四)高阶Observable的处理

JavaScript

Explanation of high-order Observables, including concatAll, mergeAll, zipAll methods for handling nested Observables in RxJS. Personal reflection and upcoming tech event anticipation.

Read more about RxJS学习笔记(四)高阶Observable的处理

RxJS学习笔记(三)合并类操作符

JavaScript

Merging operators concat, merge, zip, combineLatest; distinct features highlighted for each. Conclude with race, forkJoin, startWith functionalities.

Read more about RxJS学习笔记(三)合并类操作符

RxJS学习笔记(二)创建类操作符

JavaScript

Operators in RxJS help solve specific application problems by manipulating Observables with functions like create, transform, filter, merge, error handling, and more.

Read more about RxJS学习笔记(二)创建类操作符

RxJS学习笔记(一)Observable的创建

JavaScript

Discussion on learning RxJS for deeper understanding, creating Observables, handling infinite data stream, completing Observables, error handling, and unsubscribing.

Read more about RxJS学习笔记(一)Observable的创建

webpack 4 学习笔记

WebpackJavaScript

Overview of working with webpack, loader for file and style, plugins, optimization techniques like Tree Shaking and Code Splitting.

Read more about webpack 4 学习笔记