How to create a project based on ant design mobile using Facebook's create-react-app scaffolding

Introduction: create-react-app is a global command-line tool released by Facebook to create a new project.   Usually when we start a react web or app project, we will use npm or yarn to install some dependencies needed by the project, then write webpack.config.js, a series of complex configurations, build the development environment and writ ...

Posted on Mon, 31 Dec 2018 17:48:07 -0800 by mikeyandyou

JavaScript Object-Oriented Encapsulation (demo by ES5, ES6, TypeScript)

By default, you have read the author's previous article. JavaScript Object-Oriented Abstraction Why encapsulate? Encapsulation is to hide the internal attributes and methods of an object. External code can only access the object through a specific interface, which is also part of the idea of Interface-oriented programming. Encapsulation is a ve ...

Posted on Wed, 26 Dec 2018 16:03:07 -0800 by bruceleejr

iOS - From Three-Dimensional Cube to Understanding CATransform 3D& CGAffineTransform

Preface When writing Custom Layout's demo, the m34 parameter of CATransform 3D is used. I want to explore why this matrix can affect the perspective rotation of graphics and other transformations. So I summarize the harvest through this article for future reference. Catalog Simple Realization of Three-Dimensional Cube Introduction to the Use ...

Posted on Wed, 26 Dec 2018 10:36:06 -0800 by GeorgeMoney

LeetCode3. Longest Substring Without Repeating Characters

[Chinese ver] 3. The longest substring without duplicate characters Give you a string and get the longest substring without duplicate characters. Example: Given "abcabcbb", the answer is "abc" with a length of 3. Given "b B B B b", the answer is "b" and the length is 1. Given "pwkew", the answer ...

Posted on Tue, 25 Dec 2018 19:09:07 -0800 by rxero

Multi-If Segment Optimization in Java (1) - - Branch Structure If else/switch

I. If statement If() { } If() {} else {} If() {} if() {} if() {} If() {} else if() {} else if() {} else {} Explain: 1) Nesting or multiple nesting can be done, but in order to ensure clear logic and improve readability, try not to nest. 2) Judging the validity in sequence, when an IF statement is detected to be true, ...

Posted on Tue, 25 Dec 2018 15:00:06 -0800 by kidgeek_dfw

Driver takes you to learn: Django+Xadmin to build an online education platform [Python 2& 3 Universal] (6) 1-3

6-1 Home Page and Login Page Configuration Users access our root directory, and we need to return html files to users. So the first step is to put the html file into the template directory. mark Find the HTML on the home page in html. Copy to our template directory mark New static Directory Used to store static files such as css, j ...

Posted on Tue, 25 Dec 2018 12:33:06 -0800 by kankaro

MySQL Optimization -- NOT EXISTS and LEFT JOIN differences

In MySQL, we can convert NOT EXISTS statement to LEFT JOIN statement to optimize. Why is there performance improvement? Using NOT EXISTS mode, SQL is as follows: SELECT count(1) FROM t_monitor m WHERE NOT exists (SELECT 1 FROM t_alarm_realtime AS a WHERE a.resource_id=m.resource_id AND a.resource_type=m.resource_type AND a.monitor_na ...

Posted on Tue, 25 Dec 2018 00:36:07 -0800 by dxdolar

Oracle - Type, grammar, attributes and usage of cursors, differences between NO_DATA_FOUND and% NOTFOUND (reprint)

Classification of cursors Oracle database provides two kinds of cursor types, static cursor and dynamic cursor, while static cursor is divided into hermit cursor and explicit cursor, dynamic cursor is divided into weak type and strong type. II. Static cursor 1. Explicit cursor1. Declare cursor grammar: Cursor cursor cursor ...

Posted on Mon, 24 Dec 2018 19:42:06 -0800 by alarik149

vue vue-router vuex element-ui axios learning notes (18) write background page admin,login

The reason I write background pages first is that I need to add products first, and then I need to test them at the front end. 1. Write out the back-end homepage first, mainly the back-end routing part. admin.vue <template> <section class="admin"> <!-- head --> <el-row class="header"> <!-- logo --&gt ...

Posted on Mon, 24 Dec 2018 18:21:06 -0800 by quanghoc

Transaction rolled back because it has been marked as rollback-only

Transaction rolled back because it has been marked as rollback-only problem Program run report exception org.spring framework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only, error log stack can not find obvious trace. Scenario reduction Entrance: @Transa ...

Posted on Mon, 24 Dec 2018 08:21:05 -0800 by jude0311