In the array operation will often encounter the problem of removing duplicates, the following is a brief introduction to the method of array, and its execution efficiency
Method OneUsing two loopsPrinciple: Take the current and the back of the
1) Intro
Not long ago I set up a technology group in a MM asked a question like this, she posted the code as follows:
var a = 1;function hehe (){Window.alert (a);var a = 2;Window.alert (a);}Hehe ();
The results of the execution are as follows:
3 problems related to the scope chain The scope chain is a very red concept in the JavaScript language, and many programmers who learn and use the JavaScript language know that the scope chain is key to understanding some of the most important
Recently do project to do a product evaluation function, I went directly to Taobao to study, can look dizzy, still do not know how he did it, so the picture buckle down, wrote a, and then show me how to do, we have different ways to realize how to
In S. For, you can traverse the dominant property of an object or array, which means that our own defined attributes are traversed, and those that are already on the prototype are the ones that are available by default, such as:
Modular programming is a very common form of JavaScript programming. It generally makes the code easier to understand, but there are many good practices that are not widely known. In this article, I will review the basics of JS modular programming
Learning points:1. Use the Validate.js plugin2. Default validation rules3.validate () Methods and options4.validate.js Other Features
Verification Plug-in (Validate.js) is a plug-in that verifies the legality of regular form data. Use it, greatly
It's strictly a custom pseudo-class selector, but it's also pretty interesting.Yesterday when I learned one of the jquery lazy load source, I saw it written at the end. /* Custom selectors for your convenience. Provide a custom choice for your
--------------------the following common functions
/**
* Format method.
* Eg:
* Two ways of calling
*var template1= "I am {0}, this year {1}";
*var template2= "I am {name}, this year {age}";
*var Result1=template1.format ("Loogn", 22);
*var
Article Introduction: How the site does not need jquery at all.
JQuery is now the most popular JavaScript tool library.
According to statistics, currently 57.3% of the world's web sites use it. In other words, 10 sites, 6 use jquery. If
javascript| algorithm through ASP dynamic generation of JS array, and then JS in the client to arrange, the largest reduction of server-side pressure. (Server-side only query once, no other action)
Database design:
ID: Index, AutoNumberMc:varchar 100
Javascript
One, screen Keyboard all keys
Second, shielding the right mouse button
Add Oncontextmenu=self.event.returnvalue=false to the body tag or:
function Nocontextmenu (){if (document.all) {Event.cancelbubble=true;Event.returnvalue=false;return
Javascript| Tips
1. oncontextmenu= "Window.event.returnvalue=false" will completely screen the right mouse button
no available for table
2. deselect, prevent copying
3. onpaste= "return false" is not allowed to paste
4. oncopy= ' return false; '
Before making, we need to decompose the effect map (cups, toothbrushes, toothpaste, etc. are composed of several parts), and then to complete, grasp the overall and details.Final effect
First, draw
The picture of the effect picture is very concise: the background is very atmospheric landscape picture, plus the ancient costume character picture, adds the story plot to the picture, later adds the text and the decoration material, the picture is
This time we'll make a little dream of cosmetics poster, product efficiency is to fill the water, ingredients are herbs. So we focus on these several points for brainstorming, refining the keyword to find material and reference.Final effect
To do this kind of thing, the key is to have ideas, skilled in software, and patience. Many things same, learn typesetting, text and color matching these high standard of learning.Final effect
1, open
It is important to communicate with customers before design, to understand the requirements of customers, and then to refer to some excellent works, to find inspiration, to collect material, and finally to dissolve the picture, to design the desired
Foreword: Recently read a lot of Big data analysis article, feel Big Data era coming. The Harvard Business Review also opened a new column called "Big Data". I have sorted out all the large data analysis articles which are collected and ready to
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.