The content is relatively simple, just from the beginning to comb the knowledge of JSGrammarBlankIdentifierDigitalStringStatementObjectObject literalRetrievalUpdateReferencePrototypeReflectionEnumerationDeleteReduce global variable
I have to say that Java has nothing to do with JavaScript, not the way I thought it was (JavaScript is a hyper-evolution of Java)In JavaScript, a function is an object.The parameter relationship between the function parameters of JavaScript and the
about how to switch, temporarily found three ways.Method One: Can be written directly two copies, which need to switch to which type, but this change a function, the other needs to be replaced, increased the operation ofMethod Two: the equivalent of
Before reading this article, please read the following question: var sometext= "web2.0. net2.0"; var pattern=/(\w+) (\d) \. (\d)/g;var outcome_exec=pattern.exec (sometext); var outcome_matc=sometext.match (pattern); What is outcome_exec[1] and
I. Basic Library of functionsSplit (): Used to split a string into a string arraytoUpperCase ():SUBSTR (): LengthLength () splicing (two kinds)+Concat (): Merges multiple strings and returns the results of the merge FindThe IndexOf () method returns
Three ways to construct functions in 1.JavaScriptA.function createfun () {}B. var createfun=function () {}C. var createfun=Newfunction("A", "B", "Return A*b"); Createfun (10,3);Three ways to declare variables in 2.JavaScriptA.var
We do JS debugging When using alert can display information, debugging programs, alert pop-up window will interrupt the program, if you want to display information in the loop, hand click Close Window is exhausted. And the alert display object is
There are four basic data types in javascript: numeric values (integers and real numbers), string literals (characters or values enclosed in "or"), Boolean (with True or false representations), and null values. The data in the basic type of
Classes in basic knowledge javascriptJavaScript is actually a weakly typed language, unlike languages such as C + + and Java. So, in JavaScript, there is no concept of class, but in practice, classes are important, such as writing a game, what would
ADD DigitsGiven a non-negative integer num , repeatedly add all its digits until the result have only one digit.For example:Given num = 38 , the process is like: 3 + 8 = 11 , 1 + 1 = 2 . Since have only one 2 digit, return it.Follow up:Could do it
JavaScript can initialize arrays by array literal notation, however, ie and other browsers differ in handling the empty values of the array literal notation, as shown in the following code.Copyright NOTICE: This article for Bo Master original
attachevent is the IE add event handler, receive two parameters, where the event type name is added "on",multiple event handlers can be added and triggered in reverse order of addition;AddEventListener is to add an event handler for non-IE, receive
The text-indent attribute of CSS, csstext-indent
Definition and usage of the text-indent attribute:
Retrieves or sets the indentation of text in an object.
To use this attribute, an inline object must first be displayed as a block or Inline
Based on the CSS + dIV web page layer, click to hide or display, cssdiv
A webpage Layer Based on CSS + dIV, which is controlled by using JavaScript and Input buttons. It is displayed or hidden after being clicked. One of the special effects commonly
Css image response + Vertical Horizontal Center 2, css Center
Reprinted Please note:TheViper http://www.cnblogs.com/TheViper
In the previous article, when the maximum width of the image group is limited, the response type and vertical horizontal
Minor issues encountered when text-overflow: ellipsis overflow is used to display ellipsis. text overflow shows ellipsis.
I am just an intern. I am writing something for the first time. I hope you will encourage me a lot.
In the project, it is not
Jquery implements special effects in the pop-up box at the top, and jquery Special Effects
A prompt box pops up at the top of the page created by Jq, which can be used to display the prompt information and notification information.
Html code
Jq
Grunt getting started tutorial (automatic task runner) and grunt getting started tutorial
During Javascript development, we often encounter repetitive tasks, such as merging files, compressing code, checking syntax errors, and converting Sass code
CSS explanation and solution for setting the height of the child element 0 after the float attribute;1 2 3 4 5 test1 6 32 33 34 35 36 no. 45 38 39 No.240 41 42 No.343 44 45 INo.446 47 48 49 View Code
Code running result:
We found
JavaScript uses recursive algorithms to calculate factorial instances and recursive factorial
This example describes how JavaScript uses recursive algorithms to calculate factorial. Share it with you for your reference. The details are as follows:
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.