tp5 Do not use succes and error methods in try catch

tp5 should not use the succes and error methods that come with the framework in try catch. Original address: https://www.xianhenyuan.com/archives/305 Like this: /// New operation $AdminUserModel = model('AdminUser'); try{ $user_id = $AdminUserModel->add($data); empty($user_id) ? $this->er ...

Posted on Mon, 14 Oct 2019 10:08:22 -0700 by powelly

MySql 5.7.26 Installation-free version configuration process and related problem solving (win10 version)

I. Download and Installation 1. Download MySQL 5.7.26 Download address: https://dev.mysql.com/downloads/mysql/ After downloading, decompress to a custom path. It is important to note that there is no Chinese in the path. 2. Create a new INI file named my.ini The contents are: [mysql] # Sett ...

Posted on Mon, 14 Oct 2019 08:43:10 -0700 by cjbeck71081

Java Dynamic Proxy Source Analysis

Java Dynamic Proxy Source Analysis Interface and proxy classes Interface package cn.jastz.java.reflect.dynamic.proxy; /** * @author zhiwen */ public interface Foo { void bar(); void rtest(); void rtest1(); void rtest2(); } proxy class // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower d ...

Posted on Sun, 13 Oct 2019 09:42:37 -0700 by DigitalNinja

Generation of Ordinary Two-Dimensional Codes by java

Two-dimensional code is a small picture which is generated according to certain rules and stores information. For example, you can store parameters to store URLs and other content. These will be available after scanning.The following is the generation of ordinary two-dimensional codes, which can define the size of two-dimensional codes and the ...

Posted on Sun, 13 Oct 2019 08:41:26 -0700 by theorok

Class method, static method, reflection, magic method, singleton mode

Catalog classmethod staticmethod instance issubclass reflex hasatter getatter setatter delatter Magic method Singleton mode What is singleton Why use singletons classmethod classmethod is a decorator that decorates ...

Posted on Sun, 13 Oct 2019 03:45:21 -0700 by edwinlcy

[MySQL] Problems caused by different character sets

1. Different character sets in two tables make indexing unavailable The development reflects a request for sql that is slow and takes more than 3s. sql is as follows: SELECT tc.customer_name, cb.service_record_id~~~~, tc.customer_code, tc.customer_desc, tc.customer_account_id, tc.phone FROM tur_customer tc INNER JOIN tur_customer_ ...

Posted on Sat, 12 Oct 2019 08:02:19 -0700 by ponch9

Examples of batch upload files by interface

In the interface test, I encountered a job, uploading a batch of pictures to the server, 12000 +, in a different folder in a folder, due to the excessive upload of files, can only write scripts to upload in batches. It is also a part of automation. After testing and improvement, it is finally completed. During this period, 60 + times failed due ...

Posted on Fri, 11 Oct 2019 20:54:16 -0700 by [Demonoid]

Understanding web.xml of Web project

<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3 ...

Posted on Fri, 11 Oct 2019 13:13:10 -0700 by dc_jt

Android uses selector (selector) to achieve dynamic click effect

That is: The Prospect and Background of Android In Android, it is necessary to add dynamic click effects for the user's experience if click events are set for images. The results are as follows: The main code is as follows Realization: Step one: Set the background to selector_set in the control: (rememb ...

Posted on Thu, 10 Oct 2019 03:33:12 -0700 by jibosh

String Retrieval Method

3-1 String (String Retrieval Method)   String Retrieval Method 1. Want to get a character in a string stringObject.charAt(index) returns the character in stringObject that gets the index position stringObject.charCodeAt(index) returns the character encoding of the character that gets the index position in stringObject. 2. Want to ge ...

Posted on Wed, 09 Oct 2019 05:26:10 -0700 by C_Calav