Several ways of js inheritance

How to implement JS inheritance: Now that we want to achieve inheritance, we first have to have a parent class, the code is as follows: function Animal(name) { // attribute this.name = name || 'Xiao Bai'; // Example method this.sleep = function () { console.log(this.name + 'Sleeping in!'); } ...

Posted by a.heresey on Sun, 12 May 2019 05:29:08 +0200

The problem of using jQuery $(this) in ES6

$('.js-bottom-btn').click((event) => { let flag = $(event.currentTarget).date('flag'); ... }) Turn 1 The transition to laravel-mix ES6 started in the old project. The meaning of $(this) in the arrow function when used with jQuery has changed.   The main reason for this problem is that it is not clear. Arrow function: $('.j ...

Posted by renegade33 on Sat, 11 May 2019 02:12:17 +0200

Introduction to apply and call in functions

Application, call in function When it comes to apply,call begins by talking about their origins with functions. Javascript functions are both objects It is no different from other javascript objects. And each function contains two non-inherited methods, apply() and call(), which can call functions indirectly. For example: function f() { c ...

Posted by alexguz79 on Sat, 11 May 2019 01:18:48 +0200

Canvas Utility Library Fabric.js Manual

brief introduction What is Fabric.js? Fabric.js is a library that can simplify Canvas programming. Fabric.js provides Canvas with the missing object model, svg parser, interaction and a set of other indispensable tools. Because Fabric. JS is a foreign framework, the official API is messy and numerous, most of the relevant documents are English ...

Posted by guttyguppy on Fri, 10 May 2019 21:12:38 +0200

PHP Full Stack Learning Notes 13

PHP Full Stack Learning Notes 13 php and ajax technology With the arrival of web2.0, Ajax has gradually become the mainstream, what is ajax, the development mode of ajax, the advantages, and the use of technology.(ajax overview, technology used by ajax, issues to be noted, application of Ajax technology in PHP) What is ajax ...

Posted by Chelsove on Fri, 10 May 2019 16:46:59 +0200

Dugu Jiujian and Qiankun Great Move-uikiller Plug-in System

Chapter 1 Quake > This paper introduces the basic usage of uikiller. Some people say that the function of long press can be named as intense attack and heavy blow. I think it's really possible, but I just feel that the name of the trick is not enough. I would like to apologize to you here, as I said in the previous article: ...

Posted by stebbi on Fri, 10 May 2019 16:19:30 +0200

How to use Online Designer with FastReport.Core Library

Download the latest version of FastReport.Net Many FastReport.Core users are interested in how report generators work in Web applications written using React libraries. In this article, we will introduce how to use an online designer. Although it is displayed in the same Web object as a regular report, it is quite different from what is shown ...

Posted by quetz67 on Thu, 09 May 2019 20:58:02 +0200

Html Introduces Baidu Rich Text Editor ueditor

Rich text editor is powerful and easy to use. I use Baidu Rich Text Editor. First of all, I need to download it well. demo of Baidu Editor, Then create the ueditor.html file, introduce Baidu Editor, then introduce it into the html file, and then use js to instantiate the editor. The code is as follows: <!DOCTYPE html> <html> <h ...

Posted by elle_girl on Thu, 09 May 2019 20:10:04 +0200

What new common grammars are added to ES6

Defined function Let's start with a basic new feature. In javascript, defining functions requires keyword functions, but in es6, there are more advanced ways to write them. Let's see: es6 writing: var human = { breathe(name) { //UnwantedfunctionIt can also be defined. breathe Function. console.log(name + ' is ...

Posted by roach on Thu, 09 May 2019 13:12:04 +0200

Hand in Hand to Learn VUE: A VUE Profile and Common Internal Instructions

Video tutorial Since you can't insert the video, please move on. https://www.henrongyi.top What is VUE? VUE is a progressive framework for building user interfaces. VUE is not really a mvvm framework, but rather a data-driven framework. So before we learn VUE, whether you are a traditional JS developer or a back-end developer, we need to transf ...

Posted by kiwibrit on Thu, 09 May 2019 11:27:03 +0200