Initial javaScript hunting

Chapter 1 Introduction to JavaScript 1.ECMAScript Core Language Functions 2.DOM Document Object Model 3.BOM Browser Object Model Chapter 2 Using JavaScript in HTML 1. <script>element Defer indicates that the script will not affect page construction during execution, that is, it will delay ...

Posted on Mon, 15 Jun 2020 21:51:23 -0400 by jscruggs

AJAX and JSON in java learning

Let's talk about A jax and JSON today. In the process of project construction, the technology of ajax is generally used for front and back platform interaction, and the data of front and back interaction is made with json. Let's take a look at what ajax and json are. Ajax 1. What is ajax? AJAX is a t ...

Posted on Mon, 15 Jun 2020 05:12:34 -0400 by reliable

The eval function of C language scientific calculator imitates JS to parse the string suffix expression

C language uses suffix expression to parse string Recently, I wrote a parsing string in C language of 98 Standard, which is similar to eval function in JavaScript. It feels very practical (transplanted to calculator, you can draw F(X,Y)==0). I'd like to share with you that you can use it. Thank you ...

Posted on Mon, 15 Jun 2020 02:44:10 -0400 by john_zakaria

Conditional compilation of E chat SDK under TypeScript (using JS conditional compile loader plug-in)

Conditional compilation: the process of using the same set of code and the same compilation and build process to selectively compile the specified code according to the set conditions, so as to output different programs 1. Background: E-chat SDK needs a set of client core code developed by TypeScript to realize cross platform support (such as w ...

Posted on Sun, 14 Jun 2020 01:28:10 -0400 by JJBlaha

Vue toy: 200 lines of code to simulate the implementation of Vue

vue-toy About 200 lines of code simulate the implementation of vue. The view rendering part uses React instead of Snabbdom. Welcome to Star.Project address: https://github.com/bplok20010/vue-toy codesandbox example Implemented parameters: interface Options { el: HTMLElement | string; propsData?: Record<string, any>; props?: st ...

Posted on Sun, 14 Jun 2020 00:12:38 -0400 by paul_so40

Getting started with Babel

Babel downloads JavaScript code written in the latest standards into versions that are available everywhere today.This process is called translation. For example, Babel can incorporate the new ES2015 arrow function syntax: const square = n => n * n; Translate to: const square = function square(n) { return n * n; }; Babel does more than tha ...

Posted on Sat, 13 Jun 2020 12:16:08 -0400 by rtconner

How to build a vue-cli4+webpack mobile framework? Detailed explanation of this article

brief introduction This is a mobile framework based on vue-cli4, which includes the common configuration of the project, component encapsulation and web pack optimization methods, which can be used for rapid development. Technology stack: vue-cli4 + webback4 + van + Axios + less + postcss px2rem Source code github.com/Michael-lzg... //Installa ...

Posted on Fri, 12 Jun 2020 01:20:12 -0400 by Mark Nordstrom

Teach you how to use 24 ES6 methods to solve the JS problem of actual development? Detailed explanation of this article

This article mainly introduces es6 method in 24, these methods are very practical. Please remember this book and turn it out from time to time. 1. How to hide all specified elements const hide = (el) => Array.from(el).forEach(e => (e.style.display = 'none')); // Example: hide all elements on the page? hide(document.querySelectorAll('img ...

Posted on Fri, 12 Jun 2020 00:54:55 -0400 by d~l

How to use nodejs to realize image analysis and look at commodity orientation? This article teaches you

Requirements: Give a series of pictures of commercial shoes of the same size, and judge the orientation of their toe. For example:   First, let's show the final effect:       Ideas: In fact, it's very easy to find the law. First, we need to unify the size and width of 1000. Otherwise, it's difficult to unify the pixel position judgment. Here, ...

Posted on Thu, 11 Jun 2020 22:52:10 -0400 by |Adam|

Guess how JS encoding the audio stream?lower

Next, when it comes to getting local audio streams as the first step, we all know that H5 has a new interface dedicated to dealing with audio streaming related methods. It is the prestigious AudioContext. As for what this object can do specifically, each viewer has his own Baidu.My main use here is the createMediaStreamSource method createScrip ...

Posted on Thu, 11 Jun 2020 22:39:02 -0400 by trent2800