When publishing a blog, some code can only be pasted in, and not see the effect of the code to run, it is necessary for readers to paste the code into their own editor, and then run to see the effect, this is a very time-consuming thingIn peacetime
JavaScript Overview of JavaScript history
1992 Nombas developed the embedded scripting language for C-minus-minus (c--) (originally bundled in Cenvi software). Rename it scriptease. (The language that the client executes)
Netscape
I. Specification of modulesFirst think about why the module is important?Because of the module, we can more easily use other people's code, want what function, load what module.However, this has a premise, that is, we must write the module in the
1.JavaScript If ... Else StatementConditional statements are used to perform different actions based on different conditions.1.1 Conditional statementsOften when writing code, you always need to perform different actions for different decisions. You
1.JavaScript operatoroperator = is used to assign a value.operator + is used to add values.y=5; z=2; x=y+z;1.1 + Operators for stringsThe + operator is used to add a literal value or a string variable (to join together).If you want to concatenate
Talk is cheap,show me your code.
The history of JavaScriptIn 1995, Netscape Company's Brenda Eich for Netscape Navigator 2 began developing a scripting language called LiveScript (also used in the browser and server, on the server named
Get the specified length string from the right side of js substring
This article mainly introduces the sample code for obtaining the specified length string from the right side of js substring. If you need it, you can refer to it for help.
As
JS sample code that directly closes the webpage window is not prompted
This article mainly introduces the JS sample code that does not prompt to close the webpage window directly. If you need it, please refer to it and hope to help you.
In IE7
$. Ajax () method parameters in JQuery and Their Application
In JQuery, the $. ajax () method must be familiar to everyone. In this article, we will introduce its parameters and application examples. Do not miss out on interested users.
Url: String-
Js implementation form (textarea) Acquisition and focus usage
In js, onfocus, onblur, onmouseover, and so on will be used. jquery binds events. The following uses textarea as an example. If input is used, the value is written differently.
1.
Analysis of the trap of JavaScript prototype inheritance
Like other object-oriented languages, JavaScript uses the reference method for object types. The variable holding the object is only an address, while the basic type data is a value. There
JavaScript Window Navigator,The window. navigator object contains information about the visitor's browser.
Window Navigator
Window. navigatorObjects can be written without the window prefix.
Instance
Warning !!!
Information from the navigator
Analyzes the asynchronous io callback feature of a single JS thread, and the single js thread io callback
Most of our initial exposure to javascript started with javascript scripts in html. However, this seemingly simple language has been used for
In vue, eventbus is triggered by multiple triggers and pitfalls.
This is the first requirement. to transfer data between two page components, suppose I have page A and click A button on page, the page will automatically jump to page B, and I want to
Talking about reusing requests based on axios in Vue-cli, vue-cliaxios
This article introduces how to reuse requests based on axios encapsulation in Vue-cli and shares them with you as follows:
Install
You only need to install one axios.
npm install
Difference between split and join in javaScript (detailed description), splitjoin
Common features: the split and join functions are usually operations on characters or strings;
Differences between the two:
(1) split () is used to split a string
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