laravel code focus

1. To create a project through composer: composer create-project --prefer-dist laravel/laravel laravel 2. Enter project: cd /var/www/html/laravel 3. To create a controller: php artisan make:controller StudentController 4. Create model classes and data migration files: php artisan make:model Student ...

Posted by ibanez270dx on Thu, 20 Feb 2020 04:54:06 +0100

Get object (tag) name, property, content, comment

How to get object (tag) name, attribute, content, comment and other operations by using the Python crawler beautifulsop 1, Tag object 1. The tag object is the same as the tag in the XML or HTML native document. from bs4 import BeautifulSoup soup = BeautifulSoup('<b class="boldest">Extremely bold&l ...

Posted by etoast on Wed, 19 Feb 2020 17:41:47 +0100

WeChat official account interface development -- reply message

WeChat official account interface development - reply message As a WeChat official account, interaction with users is very important. For example, according to the message sent by users and the user information (text, pictures, videos, pictures, etc.) that are passively answered by push events, I have ...

Posted by Mouse on Tue, 18 Feb 2020 14:07:56 +0100

Basic skills of Vue [VII. Vue router routing knowledge]

1. The concept of routing Concept of Routing: Back end Routing: for a normal website, all hyperlinks are URL addresses, and all URL addresses correspond to the corresponding resources on the server Front end Routing: for single page applications, the main way to switch between different pages is th ...

Posted by integravtec on Tue, 18 Feb 2020 11:18:05 +0100

Spring Boot returns XML

In general, RESTful is to return json. Sometimes it may be necessary to return xml. What should we do? Jackson Maven adds jar file import <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> </dependency& ...

Posted by POGRAN on Tue, 18 Feb 2020 04:40:45 +0100

jdk1.8 java.io.FileInputStream class source reading

introduce jdk explained: public class FileInputStream extends InputStream A FileInputStream gets input bytes from files in the file system.What files are available depends on the host environment. FileInputStream is used to read raw byte streams such as image data.To read a string, consider using File ...

Posted by Darrel on Mon, 17 Feb 2020 03:22:39 +0100

ES6 expansion operators of several clever uses, the boss said!

ES6 adds the... Operator, which is usually used to extract the remaining parameters and expand the array in the function. But in fact, its purpose is more than that. This article introduces several techniques to use it to operate JavaScript objects. 1. Add attribute When you copy an object, add new properties to it. In the example, the user obj ...

Posted by Schlo_50 on Sun, 16 Feb 2020 09:31:30 +0100

JavaScript object-oriented programming -- ES6

Class 1 In the previous articles, we introduced the object-oriented programming of ES5. We know that before ECMAScript6 specification, there was no concept of class in JavaScript, only constructor was allowed to simulate class, and inheritance was implemented through prototype. This way of implementin ...

Posted by vlcinsky on Sun, 16 Feb 2020 05:05:34 +0100

Python - First Identity Object Oriented

Wedge Now you are a developer of a game company. Now you need to develop a game called Dog and Human Warfare. Just think, Dog and Human Warfare requires at least two roles. One is human and the other is dog. People and dogs have different skills, such as people fighting with sticks and dogs. Dogs can bite people. How can you describe these diff ...

Posted by Spinicrus on Sat, 15 Feb 2020 20:32:30 +0100

MVVM Principle-1-Principle Analysis

MVVM - Introduction and Demo What is MVVM implemented in Vue? First, the first M refers to the Model, which is also the ** data model. In fact, it refers to the data, which is changed into the Vue. In fact, it refers to the data ** in the Vue component instance. But this data has been defined from the very beginning as responsive data. T ...

Posted by wyrd33 on Sat, 15 Feb 2020 18:34:15 +0100