current location:Home > Technical Articles > Web Front-end
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Mobile Web Superpowers: Ambient Light API
- The Ambient Light API: Adapting Web Experiences to Real-World Lighting This article explores the W3C Ambient Light API, a tool enabling web developers to create more responsive and user-friendly experiences by adjusting website interfaces based on am
- JS Tutorial . promise 136 2025-02-21 11:49:12
-
- Building a Recipe Search Site with Angular and Elasticsearch
- This article demonstrates building a recipe search website using Angular and Elasticsearch. Tired of wrestling with Solr or Lucene? Elasticsearch, an open-source, Lucene-based storage engine, offers a simpler solution since 2010. It's more than ju
- JS Tutorial . promise 661 2025-02-21 10:42:10
-
- Introducing the Nashorn JavaScript Engine
- Oracle has developed a new JavaScript engine called Nashorn in the Java programming language and released it with Java 8. Nashorn's goal is to implement a lightweight, high-performance JavaScript runtime environment in Java and use native JVM. By using Nashorn, developers can embed JavaScript in Java applications and call Java methods and classes from JavaScript code. Core points Nashorn is a high-performance JavaScript engine developed by Oracle using Java, aiming to implement lightweight JavaScript operations in Java.
- JS Tutorial . promise 984 2025-02-21 10:21:10
-
- Getting Started with Bookshelf.js
- Core points Bookshelf.js is an object-relational mapping (ORM) software for JavaScript (particularly Node.js), which simplifies the process of communicating with a database by allowing developers to use objects in their programming language of choice to interact with the database. The library provides a simple and intuitive way to perform CRUD (create, read, update, delete) operations and supports a Promise-based interface, which means that functions are called only when the query is successful. As shown in the example of creating a blog JSON API in the article, Bookshelf.js can be used in conjunction with Express.js to build the API and can be used to create the API.
- JS Tutorial . promise 957 2025-02-21 10:13:10
-
- 5 JavaScript APIs to Empower Your Mobile Web Pages
- Key Points Battery Status API: Provides device battery level or status information, helps save changes more frequently when the battery is low, preventing data loss. Web Notification API: Normalizes how developers notify users, allowing alerts (such as email delivery) to be issued outside the context of the web page. However, the display styles of different browsers may vary. Proximity Sensor API: Detects the distance between an object and the device running a web page, currently only supported by Firefox. Vibration API: Allows the device to vibrate and can be used to simulate specific effects in the game. The device direction API detects the device direction, which is conducive to navigation applications and games. “Mobile market is growing” and “through mobile devices (intelligent)
- JS Tutorial . promise 834 2025-02-21 09:29:08
-
- 5 Typical JavaScript Interview Exercises
- Core points Common JavaScript interview questions usually revolve around understanding key concepts, such as scope, creating native methods, promotion, this keyword, and call() and apply() functions. In JavaScript, it is crucial to understand the context of a function and how to call it. This keyword refers to the context, which varies depending on whether the function is called as part of an object or as a standalone function. A boost in JavaScript refers to the process in which variables and functions are moved to the top of their containment scope. However, while the function retains its initial value, the variable does not, and is initially set to undefined. JavaScript enabled
- JS Tutorial . promise 241 2025-02-21 09:23:10
-
- Jump Start Sass: Architecture in Sass
- Sass Architecture: A Deep Dive into Modular CSS Development This excerpt from Jump Start Sass explores the complexities of CSS architecture and how Sass enhances the process. We'll examine various architectural approaches and best practices for buil
- CSS Tutorial . promise 210 2025-02-21 08:53:09
-
- Implementing Authentication in Angular Applications
- Key Points Implementing authentication in a single page application (SPA) involves the server exposing an authentication endpoint that verifies user credentials and returns an access token. This token is then used for all secure API requests made to the server. In Angular, access tokens can be stored in a service or in a value because they are singleton objects on the client. However, to prevent token loss when the user refreshes the page, it is recommended to use a browser persistence mechanism (such as sessionStorage) to store the token. To prevent potential data theft, the user's status should be maintained and verified on the server side and on the client side. When the user logs out, the corresponding API should be called (the request header contains the access token) and
- JS Tutorial . promise 287 2025-02-21 08:40:14
-
- Mocking Dependencies in AngularJS Tests
- Core points AngularJS is born with testing in mind, and its built-in dependency injection mechanism makes it possible for every component to be tested using any JavaScript testing framework (such as Jasmine). Mocking in unit testing involves the ability to isolate test code snippets, which can be challenging because the dependencies come from different sources. Mocking in AngularJS is simplified by the angular-mocks module, which provides simulations for a set of commonly used AngularJS services. Service simulation in AngularJS can be achieved by obtaining instances of actual services and listening to services, or using $provide to implement simulation services.
- JS Tutorial . promise 361 2025-02-20 12:28:16
-
- Building a Pacman Game With Bacon.js
- The asynchronous programming feature of JavaScript is both a blessing and a curse because it will lead to "callback hell". While utility libraries such as Async.js can help organize asynchronous code, it is still difficult to effectively track control flows and infer the logic of asynchronous code. This article will introduce the concept of responsive programming, which uses libraries such as Bacon.js to handle the asynchronous features of JavaScript. Key Points Responsive programming handles asynchronous data flows, helping manage the asynchronous features of JavaScript and avoiding "callback hell". Library such as Bacon.js can be used to implement this concept. Bacon.js is a responsive programming library that can be used to create Pac Man games
- JS Tutorial . promise 403 2025-02-20 12:19:13
-
- Reading Images and Data Using Canvas and JavaScript
- In this video, I’ll take you on a journey through the basics of how to read in image data dynamically using JavaScript. Together we’ll explore how to read in image data in three different ways – from a specific filename on your server, using the HTML
- JS Tutorial . promise 592 2025-02-20 12:02:09
-
- Writing AngularJS Apps Using ES6
- Leveraging ES6 Features in AngularJS Development: A Comprehensive Guide Key Advantages: ES6 (ECMAScript 2015) significantly enhances AngularJS development with features like arrow functions, template literals, classes, modules, and promises. These
- JS Tutorial . promise 475 2025-02-20 11:49:12
-
- The Basics of Node.js Streams
- Node.js, being asynchronous and event-driven, excels at I/O-bound operations. Leveraging Node.js streams significantly simplifies these tasks by efficiently processing data in smaller chunks. Let's delve into the world of streams and see how they st
- JS Tutorial . promise 253 2025-02-20 10:07:10
-
- A Comparison of JavaScript HTTP Libraries for the Browser
- Modern web development relies heavily on AJAX requests. While the native XMLHttpRequest object provides this functionality, many developers prefer using libraries like jQuery for simpler AJAX handling. This article compares two popular alternatives:
- JS Tutorial . promise 167 2025-02-20 09:47:14
-
- Making API Calls in AngularJS using Angular's $http service
- This article demonstrates how to use AngularJS to make HTTP requests to a remote API and update the view with the JSON response. It leverages Angular's $http service and data binding. Key Concepts: $http.get: Used to send GET requests to the API, i
- JS Tutorial . promise 958 2025-02-20 09:42:11