First, prefaceThe project has been using grunt, but the basic use of grunt, but not systematically summarized. Why build tools? Word: Automation. For tasks that require repetitive repetition, such as compression (Minification), compilation, unit
Http://www.html5cn.org/article-6571-1.htmlHow do you write JavaScript to make it taller? How can you organize JavaScript to make it easier for others to see you at a glance? Do you expect others to read your code and say, "Can you write like this?"
This year fragmented read a few JavaScript books, look back to read the previous JavaScript learning notes, it is a bit embarrassing, highlighting the "superficial" two words, but the deeper the more profound the more and more deep, a kind of
combining the constructor pattern with the prototype patternA common way to create custom types is to combine the constructor pattern with the prototype pattern. The constructor pattern is used to define instance properties, and the prototype schema
Scope : Scope is the accessible scope of variables and functions, that is, scope controls the visibility and life cycle of variables and functions. In JavaScript, the scope of variables has global scope and local scope two, the scope of the program
Sometimes, the function as a parameter can make the code more concise. var calculator = { Calculate:function (x, Y, fn) { return fn (x, y); } }; return x + y; }, return x-y; };
Original: What happens to Javascript:alert (this.innerhtml) in the href attribute of the tag? tags The above code does not get the result you want because the this object of the href attribute in the tag is not the current tag of the
In fact, the beginning of compiling JS did not how to use the object, generally used Func,func,func But with more, feel the code is not beautiful, but also here to package a function, where the package a function, or has always been a function call,
document which city do you like? Beijing Shanghai Wuhan shenzhen Journey to the Monkey Kingdoms Outlaws of the marsh document which city do you like? Beijing Shanghai Wuhan shenzhen Journey to the Monkey Kingdoms Outlaws of the
"JavaScript advanced Programming" has been read two times, some important content will always forget, write a book note memoCreating Objects
Factory modeFactory mode Advantages: With the concept of encapsulation, solve the problem of creating
All along, the understanding of this is only available, will be used, but not to delve into its essence.This time, through "JavaScript The Good Parts", made a deep understanding.Let's take a look at this one here.
When we declare a function,
Javascript Modular programming (1): Writing modules
Body:
As websites gradually become "Internet applications", Javascript code embedded into webpages is becoming increasingly large and complex. extjs is a good example.
Web pages are becoming
Summary of Radio operations using jquery, jqueryradio
Radio is often used in development to achieve the user's choice. I have accumulated some methods to operate Radio using JQUERY in the project. Here I will share with you for reference.
1. Change
JavaScript onkeydown event entry instance (a key on the keyboard is pressed), javascript button
JavaScript onkeydown event
An onkeydown event is triggered when you press the next keyboard button. Unlike the onkeypress event, the onkeydown event
CSS float and css floatWaiting for sorting
Http://www.geekplux.com/2014/04/25/several_core_concepts_of_css.html
CSS floating clearance
Clear is defined between sub-modules, as follows: Between 1 and 2, Use clear to limit.Overflow: hidden is used
Add a Cookie in JS to retrieve the cookie value and delete the cookie
Function setCookie (name, value) {var Days = 30; var exp = new Date (); exp. setTime (exp. getTime () + Days * 24x60*60*1000); document. cookie = name + "=" + escape (value) + ";
Development of javascript controls-scroll bar controlsIn the web page, there is a scroll bar. When displaying text content, the original scroll bar is enough. Generally, if we want to implement a list-like control, you can also output all the list
Special attention should be paid to reading and modifying the prototype in javascript, because the reading and writing of the prototype is not equivalent.
For members inherited from prototype objects, the read and write operations are inherently
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