Intermittent call
Intermittent calls are common in JavaScript, setinterval, which is repeated calls over a certain amount of time.
The SetInterval () method receives two parameters: the first argument can be a string or a function, and the second
Nonsense not to say more directly to everyone to paste the code.
The code is as follows:
1. oncontextmenu= "Window.event.returnvalue=false" will completely shield the right mouse button effectsno available for table
2. deselect,
This article illustrates the extension-shrink menu code implemented by JavaScript. Share to everyone for your reference. Specifically as follows:The screenshot of the running effect is as follows:
The specific code is as follows:
true
JavaScript to achieve the micro-Sina Weibo and Tencent Micro-blog Home scrolling effect , seemingly these days there are many friends need this function, a few days ago has been sent a few, but that one effect is implemented with jquery jquery
This article describes in detail the MVC frameworks commonly used in 12 of JavaScript. Share to everyone for your reference, specific as follows:
Gordon L. Hempton, a Seattle hacker and designer, spent months researching and comparing 12 popular
Login Mask effect for JavaScript implementation
mask "Life" before about 15 years are some teaching barriers, weak, you can not point to "skip." As a newcomer, you have plenty of time and energy, but almost no experience.
This article illustrates the very simple and practical effect of javascript implementation of the Pull-down menu. Share to everyone for your reference. Specifically as follows:
This is a practical JS pull-down menu, mouse over the menu to show the
Functional programming, which belongs to a programming paradigm
1 function is the first citizen , can return a value, can also be a parameter of other functions
Console is a function functions
con (v) {
Console.log (v)
}
//Execute is also
---restore content to begin---
1.location.href .....
(1) self.loction.href= "Http://www.cnblogs.com/url"Window.location.href= "Http://www.cnblogs.com/url" all two usages are the same as opening the URL page on the current page(2)
At present, the most common sort algorithm is about seven or eight kinds, among which "quick sort" (Quicksort) is used most widely and faster. It is the Turing Prize winner C. A. R. Hoare (1934--) was presented at 1960.
The idea of "quick sort" is
This article illustrates the multilevel menu effects that JavaScript implements to slide out horizontally. Share to everyone for your reference. Specifically as follows:
This is a JavaScript horizontal slide out of the multi-level menu, only with
Often when writing code to encounter such a scenario: page initialization display loading page, while starting multiple Ajax concurrent request to get data, when each AJAX request return to end loading.
For example, a page to place orders, to query
First of all, let us talk about the realization of ideas, the specific contents of the introduction please see below.
To determine if the item for value= "Paravalue" exists in the Select option
Add an item to the Select option
Remove an item from
This section describes how to implement the unknown wide-high elements to achieve vertical horizontal center under the specified elements, as in the case of span elements, how to implement the span element in the div to achieve horizontal vertical
This in the Scenario 1 Global environment points to the global object
THIS.A = ten;
alert (a);//10
B =;
alert (this.b);//20
var c =;
alert (THIS.C);//30
This of the internal function of the scene 2 object points to the current object of
Method One:
An extension to date that converts date to a string
/month (M) in the specified format, days (d), hours (h), minutes (M), seconds (s), quarter (q) can be used in 1-2 placeholders,
//year (Y) can be 1-4 placeholders, milliseconds
JavaScript objects
JavaScript provides several built-in objects, such as String, Date, Array, and so on.
Objects are only special data types with properties and methods.
In JavaScript, almost every JS used is inseparable from its object. Let's
Because there is a need to intercept the string in the project, and then the hand residue using the IDE automatically prompts the substr, did not think so many think substr and substring not much different.
But not, and listen to my one by one-way.
No more nonsense to say, directly to everyone paste code.
The specific code is as follows:
var Cookieutil = (function () {var cookie = function () {//Get single value Cookie this.get = function (name) {
var start =
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.