Tag

call

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Sep 7, 2022 · Frontend Development

Understanding JavaScript this Binding Rules and Their Priorities

This article explains the four JavaScript this‑binding rules—default, implicit, explicit (call/apply/bind), and new—illustrates each with code examples, compares their precedence, and shows how arrow functions affect this binding in modern ES6 code.

BINDJavaScriptapply
0 likes · 11 min read
Understanding JavaScript this Binding Rules and Their Priorities
php中文网 Courses
php中文网 Courses
Jan 6, 2022 · Backend Development

Implementing Redis Cache in PHP Using the __call Magic Method

This article explains how to integrate Redis caching into PHP applications by leveraging the __call magic method to create cache, clear, and flush operations for model methods, enabling shared model layers, resource‑efficient caching, flexible data source selection, and clean, reusable code.

CachingModelRedis
0 likes · 7 min read
Implementing Redis Cache in PHP Using the __call Magic Method
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 11, 2017 · Frontend Development

Master JavaScript Currying: Implicit Conversion, map, and call/apply Explained

This article demystifies JavaScript currying by first exploring function implicit conversion, then showing how to wrap Array.map with call/apply, and finally presenting practical currying implementations and their characteristics for clearer, more flexible code.

CurryingJavaScriptapply
0 likes · 9 min read
Master JavaScript Currying: Implicit Conversion, map, and call/apply Explained
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 4, 2017 · Frontend Development

Mastering JavaScript’s this: When, Why, and How It Changes

This article provides a comprehensive, step‑by‑step explanation of JavaScript’s this binding, covering execution context, global and function scopes, strict mode nuances, call/apply usage, and constructor behavior, all illustrated with clear diagrams and code examples.

Execution ContextJavaScriptapply
0 likes · 13 min read
Mastering JavaScript’s this: When, Why, and How It Changes