Digital scroll control
In a previous project, there is a gold coin attribute. When you want to add gold coins, you need to scroll like a slot machine, find the information on the Internet, summarize it, and share it with you.
Let's start with the picture (git doesn't work, let's imagine)
Usage method
1. Create attrs.xml file under res/values to c ...
Posted by DrFishNips on Thu, 02 Jan 2020 15:11:44 -0800
Rebuilding Vue kill editor: upload pictures to server and insert rich text
<template>
<div>
<quilleditor v-model="content"
ref="myTextEditor"
:options="editorOption"
@change="onChange"
>
<div id="toolbar" slot="toolbar">
<select class="ql-size">
<option value="small">&l ...
Posted by bouba on Thu, 02 Jan 2020 13:14:03 -0800
Optimization code of Android Support Annotations annotation Library
Introduction:
Android Support Annotations is an annotation library introduced from version 19.1, which can optimize code, increase readability, and reduce code error reporting
Use:
1: boot pack
implementation 'com.android.support:support-annotations:23.4.0'
2:Support Annotations classification
2.1:Nullness annotation
@ ...
Posted by stu215 on Thu, 02 Jan 2020 09:41:07 -0800
Use function - 3 to use parameters
1, Defining parameters
1. There are two types of function parameters: formal parameter and actual parameter. A formal parameter is a variable declared by a function. It is only visible inside the function. An actual parameter is the parameter value actually passed.
//[example 1] the following code defines a simple function.
f ...
Posted by healy787 on Thu, 02 Jan 2020 05:20:44 -0800
Spring MVC file upload and download function
File upload
In order to upload the file successfully, you need to set the method attribute of the form to POST and the enctype to multipart / form data. Once it is set to multipart / form data, the browser will process the form data in binary. spring cannot process the file upload by default. You need to configure the MulipartResolver in the sp ...
Posted by James25 on Thu, 02 Jan 2020 01:30:31 -0800
The difference between jquery each and for
1. Difference between. each()] and. each()] and (). each()
$. each is used to traverse array, object, array object, code form (arr,function(index,value)) or (obj, function(key, value) {})
(). each is used to traverse dom. The code form is (). each is used to traverse dom. The code form is ('li '). each (function() {var XXX = ...
Posted by thenature4u on Wed, 01 Jan 2020 23:20:57 -0800
jquery add delete input input input box
When writing the front-end page, sometimes one or more lines of input boxes are added or reduced dynamically according to the business requirements. I saw that other people's writing is too complex before. I'll give you my simplified one for reference.
To achieve the effect, click Add to add a new line of input box at the bott ...
Posted by swjohnson on Wed, 01 Jan 2020 17:28:13 -0800
NGX echarts note 2 (angular + NGX echarts)
1, Add background to chart
Add an outer div to the chart to set the background for this outer Div
html:
<!--html-->
<div class="setimg">
<div echarts [options]="rightOption4" class='demo-chart'></div>
</div>
css:
.setimg {
width: 100px;
height: 100px;
margi ...
Posted by Clukey on Wed, 01 Jan 2020 08:17:34 -0800
Getting Started with the web Front End to Practice: N Scenes and N Ways for css to Center Vertically
Elements of inline or inline-* are vertically centeredThe properties padding, line-height, vertical-align can be used.There are two specific scenarios:
One line vertically centered, such as a single line of text or a link
In this case, vertical centering can be achieved by adding a padding value of the same size above and below the element.
...
Posted by rab on Wed, 01 Jan 2020 08:09:29 -0800
iOS basic control UIImageView
UIImageView introduction
UIImageView is a container for placing pictures. In the development of app, if you want to show pictures, you need to use UIImageView as a control. Here's how to use
UIImageView creation
UIImageView and UILabel are inherited from UIView, so the creation of UIImageView is the same as UIView.
...
Posted by Dan06 on Wed, 01 Jan 2020 04:07:11 -0800