First, prefaceThe previous article describes the basic simple concepts of objects and the object's data properties and accessor properties, as well as some operations on these two property types, followed by the pattern of creating objects.Ii. how
Nornj-javascript Template engineNornJIt is a JavaScript template engine with high rendering efficiency, good syntax readability, strong extensibility, and rich application scenarios.Study site: HTTPS://WWW.NPMJS.COM/PACKAGE/NORNJRelated projects:
Object-oriented JavaScript---polymorphic polymorphismThe word "polymorphic" originates from the Greek polymorphism, which is poly (plural) + morph (morphology) +ism, which literally we can understand as plural forms.The actual meaning of
Object.defineproperty ()tags (space delimited): JavaScriptOriginal addressSource Address
Object.defineProperty()Method defines a new property directly on an object, or modifies an existing property of an object and returns the object.
JavaScript modular programming has become an urgent requirement. Ideally, developers only need to implement core business logic, and others can load modules that others have already written.However, JavaScript is not a modular programming language,
The scope of a variableTo understand closures, you must first understand the special variable scope of JavaScript.The scope of a variable is nothing more than two kinds: global variables and local variables.The special point of the JavaScript
First, the flow of the interfaceThe good interface is smooth and easy to understand, he mainly embodies the following aspects:1. SimpleTo manipulate the CSS properties of an element, here is the native method:?
1
Logical operationsTwo kinds of logical operations are supported in JavaScript, "Logical OR (| | and logic and (&&), their use is consistent with the basic Boolean operation:var str= ' Hello ';var obj = {};x = str | | Objy = str && obj;What is
Division is not the manual algorithm to calculate, the basic idea is to do subtraction repeatedly, see from the divisor of the most can subtract how many divisor, quotient is how much.Division function:
If the former value is less than the
Do not use jQuery to trigger native events
This article mainly introduces how to avoid using jQuery to trigger native events. For more information, see
The JavaScript framework provides so many functions that they will fall into the trap
JS: a simple example of getting the text box, drop-down box, and single-sheet value
This article mainly introduces a simple example of JS text box, drop-down box, and single-region value. If you need it, you can refer to it for help.
1. Text Box
1
60. Refresh the js Code of the webpage during the countdown
This article mainly introduces the js Code for refreshing the web page at the countdown time 60. For more information, see
The Code is as follows:
60 refresh this page
60
JQuery and Ajax call Sina API to obtain the code for a short URL
This article describes how to call Sina API to obtain short URLs. In this example, we will introduce how to use JQuery and Ajax. For more information, see
The Code is as follows:
Examples of jquery web page search
When you need to search for a keyword on the page, you can use the search function of the browser, and you can use the front-end script to find and locate the keyword accurately, this article describes the page
Terminate function execution in javascript
This article mainly introduces how to terminate function execution in javascript. If you need it, you can refer to it for help.
1. if return is used to terminate a function, the instance is as
Combining paging applications in Extjs4 with the front and back ends
This article describes how to use pages in Extjs4 in combination with the front and back ends. The specific example is as follows. If you are interested, refer
Foreground:
The
JQuery example Tutorial: Create a foldable panel on a webpage
Let's combine the techniques of the previous examples to create a foldable panel. To achieve the following results, call the slideDown () method and slideUp () method.
The core
30 basic concepts that Java Beginners should master
Basic concepts:
1. the only link in OOP is what the interface of the object is. Just like a computer vendor, no matter what the internal structure of the power supply is, it only depends on
JavaScript Window Location, javascriptlocationThe window. location object is used to obtain the address (URL) of the current page and redirect the browser to the new page.
Window Location
Window. locationObjects can be written without the window
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