angularJS simple query
Recently, angularjs just contacted has a little gap with angular4. Let's share the simple query of the editor.
The query data is probably such a display mode, and the query is also a simple input input input box
In this case, the first step is to obtain data in service:
getidnum: function (idnum) {
var deferred = $q. ...
Posted by js_280 on Thu, 26 Dec 2019 20:00:14 +0100
Implementation of special effect of carousel carousel with native JS
It's about this son:
First of all, let's make a simple layout (emm... Let's do something about it, anyway, it's mainly made up of js)
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta http-eq ...
Posted by USMarineNCO on Thu, 26 Dec 2019 19:00:16 +0100
prometheus monitoring port
In daily monitoring, health monitoring is very important for services. Most of its monitoring methods are to monitor service ports and service processes, usually only one of them needs to be monitored.
blackbox_exporter is one of the official exporters of Prometheus, which can provide monitoring data collection of http, dns, tcp and icmp
Blac ...
Posted by love_php on Thu, 26 Dec 2019 17:43:47 +0100
Wechat web page to obtain user information
To obtain user information through wechat webpage authorization, you only need to configure the authorized domain name on the wechat side, and the subsequent operations are all implemented on the server side.
1. Wechat background configuration authorization domain name
2. Access to user information on the server side
Write ...
Posted by snday on Thu, 26 Dec 2019 16:33:44 +0100
ajaxfileupload upload file with parameters
A few days ago, when uploading files with ajaxfileupload, I found that ajaxfileupload could not be transferred with parameters, so I found a ready-made ajaxfileupload that can be transferred with parameters from github, and learned how to upload files with ajaxfileupload.
The github address of ajaxfileupload that can be passed ...
Posted by barkster on Wed, 25 Dec 2019 18:43:17 +0100
Search details of elastic search (2): request body search
The previous article introduced the search based on url. This time I want to talk about a more advanced search method - Request Body Search. The search parameters are not written on the url, but sent as the requested data. The syntax of Query DSL can be used to combine more flexible searches.
A simple example
GET /customer/_s ...
Posted by frabble on Wed, 25 Dec 2019 16:15:46 +0100
js encrypted Sina Weibo login
1. url: https://weibo.com/
2. target: Login
3. Analysis. Due to the need to fill in the verification code, this article only analyzes the part of cracking the user name and password encryption, without verification code identification.
3.1 according to the old rule, F12, enter an account password and click login to see what requests have be ...
Posted by phpnewbie112 on Wed, 25 Dec 2019 11:21:21 +0100
Koa 2 first experience (2)
Koa2 routing
Implementation of Koa2 native routing
The role of routing in the web is self-evident. To realize the native routing, you need to go to the path entered in the address bar, and then jump according to the different path. In Koa2, we can use ctx.request.url to get access path:
const Koa = require('koa')
const app = ...
Posted by czambran on Tue, 24 Dec 2019 21:43:03 +0100
After json serializes the string, the enumeration type displays the value instead of the name
There is often a requirement that enumeration constants are used in entity classes, but are serialized into json strings. The default is not the value I want, but the name, as follows
Class
@Data
public class TestBean {
private TestConst testConst;
}
enumeration
@AllArgsConstructor
public enum TestConst {
AFFIRM_STOCK(12), ...
Posted by menriquez on Tue, 24 Dec 2019 20:45:42 +0100
How to import iconfont into react native Expo
Step 1 download Icoont Alibaba vector map
After logging in the website, add the required icon to the library as follows:
Then download to local. (Note: the compressed package downloaded by my google browser is empty, and it was successfully downloaded by using other browsers.)
It has the following contents:
Step 2: crea ...
Posted by PugJr on Sun, 22 Dec 2019 19:47:11 +0100