Yii2.0.12 upgrade to PHP7.2

Let's talk about the PHP running environment of the Yii framework. Yii 2.0.12 uses the \ yii\base\Object class, and the Object as the class name PHP7.2 reports an error. The minimum available version of Yii2 for PHP7.2 is 2.0.13. Provides several ways to upgrade. The project uses Composer to manage bower and npm front-end resources. Inst ...

Posted by eerikk2 on Sun, 10 Nov 2019 20:37:57 +0100

Ethereum Chinese document translation - Smart contract

This paper Original link Click here to get Chinese document of Etherscan API (full version) The layout of the whole content is better, and readers are recommended to read it. Smart contracts Please refer to the API related to the smart contract and the parameter description of the interface. Etherscan API conventions , not described separatel ...

Posted by psychosquirrel on Mon, 04 Nov 2019 17:25:45 +0100

jQuery source code analysis event system module example method and convenient method details

Instance method and convenient method refer to the method that jQuery can operate directly through link, which is realized by calling the method on $. event (the underlying method introduced in the previous section). The common methods are as follows: on(types,selector,data,fn,one); bind one or more types of event listener functions to each el ...

Posted by techbinge on Wed, 30 Oct 2019 00:42:55 +0100

nodejs crawler http, cheerio, mysql module

nodejs related modules Get web content (httprequestsuperior, etc.) Filter web information (cheerio) Output or store information (consolesmongodbmysql, etc.) 1. Use the request module to obtain the web page content var request = require('request'); // Read the content of http://cnodejs.org/ through GET request request('http://cnodejs.org ...

Posted by quikone on Tue, 29 Oct 2019 20:27:51 +0100

TP5+swoole to develop WebSocket online chat communication system

Swoole and thinkp5 develop WebSocket online chat communication system To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension. To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoo ...

Posted by Headache on Mon, 21 Oct 2019 21:54:36 +0200

Asp.net webapi pushes messages to clients through WebSocket to build a service that is both the server and the client

WebSocket is a single TCP Connect to full duplex Communication protocol. WebSocket communication protocol was approved by IETF As standard RFC 6455 and supplemented by RFC7936. WebSocket API Also be W3C Set as standard. WebSocket makes the data exchange between the client and the server easier, allo ...

Posted by omprakash on Mon, 21 Oct 2019 17:05:53 +0200

Online chat with Swoole

Swoole and thinkp5 develop WebSocket online chat communication system ThinkPHP needs to install the think Swoole composer package when using Swoole, provided that the system has been installed Okay, Swoole PECL expansion To install think swoole, execute the composer command in the project root directory of tp5: 1 composer require topthi ...

Posted by realchamp on Mon, 21 Oct 2019 16:36:50 +0200

Deep copy and shallow copy in js

In the interview, we often ask about the deep and shallow copies of js, and often let us write by hand. Now let's understand the deep and shallow copies of JS thoroughly. In js, when assigning a variable to another variable, the worth copy is actually a pointer. The pointer of two variables points to the same piece of push memory. When we chan ...

Posted by Bman900 on Mon, 14 Oct 2019 19:34:56 +0200

jQuery Source Code Analysis data Caching Module

jQuery's data caching module attaches any type of data to DOM elements in a secure way, avoiding circular references between JavaScript objects and DOM elements and resulting memory leaks. Data caching module provides a unified method of data setting, reading and removing for DOM elements and JavaScript objects. Within jQuery, it also provides ...

Posted by jenni on Mon, 14 Oct 2019 01:43:21 +0200

Echarts - Map Extension - Standard GeJson Format Extension Map - Example

Links to the original text: http://www.cnblogs.com/coprince/p/5590135.html I'm a rookie. I've been working on echarts maps recently. Seeing the official example of the "standard geoJson format extended map - the major cities of the ...

Posted by FredAt on Thu, 10 Oct 2019 23:15:12 +0200