Use of HTML5 canvas

What is canvas In web pages, we also call the special area for drawing graphics as "canvas". Web designers can draw their own graphic styles in this area. How to use canvas 1. Create canvas Use the canvas tag in HTML5 to create a canvas in a web page. Basic syntax format: <canvas id="Canvas name" width="numerical value" he ...

Posted by ShawnK on Sun, 24 Oct 2021 04:45:57 -0700

TypeScript data type, arbitrary value, type inference, union type, interface (Interfaces, optional attribute?:, arbitrary attribute, read-only attribute)

TypeScript (II) data type, arbitrary value, type inference, joint type, interface (Interfaces, optional attribute?:, arbitrary attribute, read-only attribute) website: https://ts.xcatliu.com/ 1. Original data type There are two types of JavaScript: raw data type( Primitive data types )And Object types. Raw data types include Boolea ...

Posted by contra10 on Sun, 24 Oct 2021 00:27:58 -0700

Crawler reverse foundation, understand JavaScript modular programming, webpack

WeChat official account: brother K crawler, QQ exchange group: 808574309, keep sharing crawler advance, JS/ Android reverse technology dry cargo! brief introduction When analyzing the JavaScript code of some sites, the simple code and functions are usually one by one, for example: function a() {console.log("a")} function b() {consol ...

Posted by AAFDesign on Sat, 23 Oct 2021 21:33:33 -0700

✨ 7 tips and tricks to make your console.log() output stand out

🌊 Author home page: 🏆 Hai Yong High quality creators in CSDN full stack field 🌊 About the author: 🥇 HDZ core group members 🥈 Ranked among the top 20 in the weekly list of station C 1. Design your console.log Although this is not necessary, do you think if you leave a colored egg message on the console of your personal website, it will ...

Posted by deeessay on Sat, 23 Oct 2021 18:08:29 -0700

Hand tear source code to achieve a Koa.

Official profile Koa is a new web framework built by the original team behind Express. It is committed to becoming a smaller, more expressive and more robust cornerstone in the field of web application and API development. By using the async function, KOA helps you discard callback functions and effectively enhances error handling. Instead of ...

Posted by sdat1333 on Sat, 23 Oct 2021 17:13:49 -0700

VUE Core Learning Notes

Principle of VUE data monitoring vue monitors all levels of data in the data How do I detect data in an object? adopt setter Implement monitoring, and in new Vue Pass in the data to be detected (1),Attributes appended to the object, vue Do not respond by default (2),To respond to the added attributes, use the following API: Vue.set ...

Posted by adzie on Sat, 23 Oct 2021 09:16:20 -0700

007 - detailed summary of internal knowledge

Member of class     attribute         Static properties         Non static attribute     method         Static method         Non static method     constr ...

Posted by Joe_Dean on Sat, 23 Oct 2021 07:46:31 -0700

Five ways of inheritance

Several ways of inheritance: 1. Borrow constructor 2. Combination inheritance 3. Prototype inheritance 4. Parasitic inheritance 5. Parasitic combinatorial inheritance 1. Borrow constructor // Define SupTyp constructor function SupType() { this.colors = ['red', 'yellow', 'blue'] } function SubType() { // Inherited SuperType SupTyp ...

Posted by trufla on Sat, 23 Oct 2021 02:36:10 -0700

How much do you know about Decorator?

preface Do you really know about decorators? I believe that developers who have used decorators must love some of its features. Both react, vue and angular can be supported through babel. Of course, there are some encapsulated third-party decorator libraries, which can realize some powerful functions after reference. Let's have a brief look. ...

Posted by Fyorl on Sat, 23 Oct 2021 01:06:39 -0700

Promsie source code analysis in one step

Broken thoughts: Dear readers: Hello! My name is Changlon - a non professional programmer, a developer dedicated to the front end, a thinker who loves life and sometimes has melancholy. If my article can bring you some harvest, your praise collection will be a great encouragement to me! My email: thinker_changlon@163.com My Github: htt ...

Posted by Solar on Fri, 22 Oct 2021 22:49:10 -0700