thought : Each trip inserts a record into the appropriate position for a set of records that have been sequenced, knowing that the records to be sorted are inserted.functionInsertsort (arr) { for(vari=2;i){ if(Arr[i]//less than when
To repeat when adding new elements to an array1. General Ideas and principles vara =[3,5,8,9,2,10,4];//Original Array varx = 4;//New Data varCF =false;//set a value that determines whether duplicates are repeated for(vari=0;i//Looping
The array methods of JavaScript are:Http://www.w3school.com.cn/jsref/jsref_obj_array.aspWhere:concat, join, and slice methods do not modify the original array .Note: The sort method should be used with a comparison rule .Example code:DOCTYPE
This is a keyword in the JavaScript language. It represents an internal object that is automatically generated when the function is run, and can only be used inside the function.In JavaScript, this represents the current object. When writing a
In addition to the object type, array is the most commonly used type in ECMAScript.Unlike other languages, each item of the ECMAScript array can hold any type of data.Moreover, the size of the ECMAScript array can be dynamically adjusted, and the
Tag: His function executes markdown document down via event issueEvent delegateThe event delegate, as the name implies, is the event that is supposed to trigger on the a element, which is delegated to the B element to trigger, for example, events
The bottoming button in the applet is applicable to the iPhone X solution, and the iphone in the Applet
With the arrival of the second three batches of iPhone X, the local tyrants around them began to use them one after another. There were many
Css selector priority
When we write a page, I don't know if you will have such a problem. Why do I have already selected the elements I want to add to this style, but his style does not take effect. Why?
When the defined attributes conflict, the
Record a website packaged with Node. js electron, node. jselectron
For detailed steps, see: http://blog.csdn.net/a727911438/article/details/70834467
Many problems occurred during packaging, which were recorded one by one for reference by
Difference in form submission method, form submission
Form can be submitted in either of the following ways: post or get
Post means that the interaction information is put into the Request body.Get means that the interaction information is
Sublime usage tips,
Ctrl + N create an editing area, Ctrl + Shift + C or! Add Ctrl + ETO create a new file with intact skeleton.
Ctrl + Shift + P open command mode, sshtml switch html syntax. Exit esc, Ctrl + 'Open workbench,
Ctrl + Enter Add
Tables and forms
A table is a combination of labels for layout and has good compatibility. Most of the layout ideas are div + Css.
I gave a brief overview of table labels. The table header can be omitted. The main style is as follows:
Webpage information capturing and webpage capturing
Write a class that captures information (such as the latest headlines, news sources, titles, and content) from a webpage, this article describes how to use this class to capture the information
HTML tags, html tags
1. Paragraph
Full row
P Paragraph spacing
Br, line feed, but still in this section, there is no spacing ()
H is generally used for titles h1, h2, h3, h4, h5, h6. the maximum size of h1 is h6.
Div occupies only one row
2.
Vue installation,
I. Overview
1. Install node and go to the node official website.
2. Create a new project and initialize it using the npm init command to create a package. json file.
3. Run npm install vue-g to install vue globally.
Ii.
Notes on css proficiency,Chapter 2 selector, comment
1. You need to know the commonly used selectors (id selector, class selector, type selector, descendant selector, pseudo class selector (outside the document structure ))
General selector
CSS3 linear-gradient linear gradient to implement simple and practical graphics such as dotted lines,1. CSS3 gradient as an image
I think one of the most powerful aspects of CSS3 Backgrounds is that it supports multiple Backgrounds, that is, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service