Reach advanced routing and parameters

  1. Installation depends on the latest version by default npm i react-router react-router-dom --save-dev 2. Import main component object import {BrowserRouter as Router,Route,Link,Redirect} from 'react-router-dom'; 3. The writing structure is inside the component and does not need to be written in the render. The Router ...

Added by philwong on Wed, 01 Jan 2020 12:08:12 +0200

Query result field type in yii2 database

The default return from the yii2 database query is an AR object, where the field type is essentially the same as the database, but if asArray is used to return in an array, the default field type is all string, and if this json_encode is returned to the App end, it will be killed by the engineers of the strongly typed languages Android/IOS, and ...

Added by Eratimus on Mon, 30 Dec 2019 09:49:12 +0200

An article takes you through function expressions, recursion, closures, variables, this objects, module scopes in JavaScript

Author| Jeskson Source|Dada Front End Bistro How functions are defined: The first is a function declaration; the second is a function expression. Grammar: function functionName(arg0, arg1, arg2) { // Function Body } In Firefox, Safari, Chrome, and Opera: This property gives you access to the name specified by this function. console.log(funct ...

Added by Twister1004 on Mon, 30 Dec 2019 03:08:45 +0200

Building PHP Configuration for LMAP Architecture (Final)

[TOC] Article Directory 1. Introduction to PHP 2. Preparations before installation 3. Manual Compilation and Installation of PHP IV. Installation Process of Forum 1. Introduction to PHP PHP, which is used to interpret dynamic Web page files, provides a development and running environment for Web applications. PHP is a widely used open source, ...

Added by katuki on Fri, 27 Dec 2019 22:18:53 +0200

LNMP Environment Setup (PHP 7.4.0)

Catalog Dead work Install wget Install net-tools Install vim Configure Display Line Number Close Firewall Install Nginx Installation Dependency Compile and install Nginx Configuring environment variables Systemd Management Install M ...

Added by terryl on Fri, 27 Dec 2019 04:51:09 +0200

Analysis of self, static and parent keywords in PHP object-oriented programming

This article mainly introduces the use of self, static and parent keywords in PHP object-oriented programming, and analyzes the functions, application scenarios and related use skills of self, static and parent keywords in combination with the form of examples. You can refer to the following examples for your friends, this article describes th ...

Added by unstable_geek on Thu, 26 Dec 2019 10:23:25 +0200

PHPExcel ---- get / import excel file data [simple and practical demo2]

For excel export / save, please refer to another blog post: PHPExcel - save / export excel file data [simple and practical demo] First, you need to have PHPExcel class: Portal Just save the Classes in it. Reference PHPExcel.php in the project First look at the excel data source table you want to obtain: Implementation cod ...

Added by transformationstarts on Wed, 25 Dec 2019 17:10:11 +0200

Getting started with Nginx error page redirection (Nginx installed from yum)

1. Environment: Nginx installed from yum. 2. Scenario: redirect the error prompt page of Nginx. 3. Configuration file / etc/nginx/conf.d/default.conf tip: why is this configuration file? Because include /etc/nginx/conf.d/*.conf is loaded in the nginx.conf file; 4. default.conf source code: server { listen 80; serve ...

Added by southofsomewhere on Tue, 24 Dec 2019 23:04:12 +0200

Python 3 uses in to read the text from the file after opening the file

  First, under python, open the file, which is an iterator object, so you can get it through in <class '_io.TextIOWrapper'> Note: the txt file I use here is a json file Here you can view it through the following code: import json path= r"E:\tf_project\utilize python Conduct data analysis--data\ch02\usagov_bitly_data ...

Added by disconne on Mon, 23 Dec 2019 00:44:08 +0200

Install and configure Nginx under CentOS 7 to support pseudo static (including all codes)

Install and configure Nginx under CentOS 7 to support pseudo static It is a difficult problem for novices to install and configure Nginx under Linux to support pseudo-static state. They often encounter 404 and other errors. Configuration and debugging is a waste of time. Sometimes they feel that they can't start. Online materi ...

Added by fragger on Sun, 22 Dec 2019 17:31:22 +0200