1. JavaScript modularity
JavaScript modularity is a corollary to the increasing workload of JavaScript, and in recent years JavaScript modularity has been a part of the standard and has been introduced in the next generation of JavaScript official
1. jquery Chapter
1. jquery Gets the value of the element named Price under #first
function Getit () {
name = $ ("#first input[name= ' price ']"). Val ();
alert (name);
Alert ($ ("#first input[name= ' price ']"). attr ("value"));
1. Constructor function
2. Five prototype principles
(1). All reference types (arrays, objects, functions) have object attributes that can be extended freely (except null)
(2). All reference types (arrays, objects, functions), all have
A
The difference between a value type and a reference type in JavaScript
a , not stored the same way
L Basic Data type
A variable stores a simple data segment, storing a specific value, and a lightweight way of storing data.
L Reference type
A value
It's good to understand that when we chose to do DOM selection before, we used theDocment.getelementbyid () ,document.getElementsByTagName(),等。Such code, in general, is available, but if there is a hierarchical relationship, we always need a
The array in JavaScriptToday more comprehensive learning to JS in the array, that is, arrays. Write a blog post to summarize the learning and use of some of the errors in the array and common APIs, to deepen the impression.About the most
JS variable PromotionFor most JS developers, variable elevation can be a very common problem, but many people may not be particularly aware of it. So here, I'd like to say a few words.Let's start with a simple example:a = 2;var a;console.log(a);What
An operator1. Basic ConceptsExpression: A phrase made up of constants/variables and operatorsOperands: Constants and variables in an expression become operandsMonocular operator: becomes a single-mesh operator with only one operandMulti-mesh
JavascriptType ConversionsNumber () is converted to numbers, string () is converted to a string, and Boolean () is converted to a Boolean value.JavaScript Data typesThere are 5 different types of data in JavaScript:
String
Number
First, JavaScript regular correlation methodStr.match (RegExp) functions similarly to regexp.exec (str).Str.search (RegExp) functions similarly to regexp.test (str).1. String.prototype.match ()Retrieves a match and returns an array (no g) that
Math Method Math: Object data type;
math: {} is a key-value pair under window; The property is named Math, and the property value is an object
var obj = {a:1};console.log (OBJ.A); Console.log (window. Math);1. Math.Abs (): Take absolute
Relationship of functions and objectsFunctions can have properties, objects can have attributes, and an operator can be used to new return an instantiated object of a function before the function namefunction fn () {}fn.a = ‘haha‘console.log(fn.a) //
ROUGHJS is a lightweight JavaScript graphics library (approximately 9KB after compression), allowing you to draw sketch-style, hand-drawn-style graphics on your Web page. ROUGHJS defines the elements that draw lines, curves, arcs, polygons, circles,
The ET and const declarations within {} will become externally inaccessible values, but Const declares constants and cannot modifyThe function is the most common scope unit in JavaScript. In essence, a variable or function declared inside a function
There are some errors. Find them and exercise one :)
// Obtain the printer on the networkFunction getnetprinter (){VaR OBJ = new activexobject ("wscript. Network ");VaR netprinter = obj. enumprinterconnections ();For (I = 0; I {Document. writeln
When using the server, you may find that you can browse the map in Javascript mode in the rest address. You need to compute the map and use it in the case of Internet connection. The reason is that you have called the online javascript API, next,
Recently, jsfiction released jsdraw2d, a javascript library that allows developers to easily create images, including basic shapes (such as polygon, arcs, and circles) and fill shapes, and the bésel curve (including the first, second, and
Reprinted Please note: http://blog.csdn.net/herm_lib/article/details/8580917
I found several JS versions of protobuf, two officially recommended ones:
Protobuf-JS: http://code.google.com/p/protobuf-js/
Protojs:
Recently, due to project requirements, IP Control and MAC address control must be used on the page to beautify the interface. I found a good IP control on the Internet, but unfortunately I did not find the corresponding MAC address control. No way,
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.