LEYOU MARKET LEARNING NOTES XI-Elasticsearch LEARNING

3.1. Basic queries: Basic grammar GET/Index Library Name/_search { "query":{ "Query type":{ "Query Conditions": "Query Conditional Values" } } } Here query represents a query object, which can have different query attributes. Query type: For example: match_ ...

Posted by IanMartins on Sun, 12 May 2019 14:09:54 +0200

Realization of 2048 mini-games with JS

Preface: What I have been doing for a year is back-end stuff. I haven't written the front-end code. I forgot about it. I used jQuery before, but I can still do something good. Think of picking up a little, or waste the cultivation of the master. I've been reading blogs, but I don't have anything of my own. this has to change. why not start now? ...

Posted by shaitan on Sun, 12 May 2019 10:16:18 +0200

Design Patterns--Factory Patterns

Derive Simple Factory Mode from Pizza Project Factory Method Model Abstract factory pattern key point Pizza project: to facilitate the expansion of pizza varieties, to facilitate maintenance, to be able to run the expansion Pizza design: Define an abstract class of Pizza, define four methods prepare() abstract me ...

Posted by dannyz on Sun, 12 May 2019 00:22:47 +0200

Bessel Curve of Android Custom View(9)_Path

I. Table of Path's Common Methods In order to be compatible (lazy), the method added above API21 (Android Version 5.0) is removed from this table. Unable to help Tucao, why does it seem that some overloaded method can be written only when API21 is added. Baby's heart is crumbling at the moment. Effect correlation metho ...

Posted by VagabondKites on Sat, 11 May 2019 20:34:14 +0200

[VUE] - Recommendation preparation for mobile H5 page development using VUE

Before using Vue to develop mobile pages, we need to do some pre-work to ensure that what users see when they visit the pages does not have different effects because of the different devices. For example, a page is displayed normally on the iPhone 7 plus, and then switch to the iPhone 5 because a small part of the content of th ...

Posted by xiosen on Sat, 11 May 2019 19:12:06 +0200

Android Custom Control: Mobile Phone Number Input Box with Animation Effect (3-4-4 format)

Click "Android Technology Grocery Store" above and select "Top Public Number" Dry article, first time service!   Author: Android Grassroots King Link: https://www.jianshu.com/p/e538b35c68c3 This article is authorized by the author. Custom controls are used in many parts of the project. Simple points ...

Posted by yanti on Sat, 11 May 2019 13:56:24 +0200

The problem of Alert Dialog's background changing after Android Activity sets the theme background

If you look closely at the flash page of App, you will find that every time you click on the icon on the desktop of your mobile phone to start the application, a white background (that is, what we usually call a white screen) will appear first, and then you will jump to the flash page. Like this: On how to solve the white sc ...

Posted by cosminb on Sat, 11 May 2019 12:29:47 +0200

Key Points of Android APP Full Screen Adaptation Technology

The Concept of Full Screen Why explain the full screen first, because the word is now a false proposition. Full screen literally means that the front of the mobile phone is all screen, 100% of the screen. But nowadays, none of the manufacturers that launch so-called "full screen" mobile phones can achieve full scale. So ...

Posted by Jebs on Sat, 11 May 2019 11:39:04 +0200

The problem of using jQuery $(this) in ES6

$('.js-bottom-btn').click((event) => { let flag = $(event.currentTarget).date('flag'); ... }) Turn 1 The transition to laravel-mix ES6 started in the old project. The meaning of $(this) in the arrow function when used with jQuery has changed.   The main reason for this problem is that it is not clear. Arrow function: $('.j ...

Posted by renegade33 on Sat, 11 May 2019 02:12:17 +0200

Lesson 12: Running in the Background (based on Android Studio 3.2)

Now that we have some knowledge of UI elements and screens, we need to make them responsive. Response is not just about speed - how much work you can accomplish over time. What's more important is how fast the application is. When people say that the application responds, they usually mean that the application will not prevent ...

Posted by Lukeidiot on Fri, 10 May 2019 23:17:10 +0200