Alibabacloud.com offers a wide variety of articles about javascript definitive guide, easily find your javascript definitive guide information here online.
: Indicates whether the property can be deleted or modified.First, create the object1. Direct volume of objects var empty={}; // var point={x:0,y:0}; var point2={x:point.x,y=point.y}; var book={ "main title": "JavaScript", // "Sub-tit": "The Definitive Guide", // for: ' All audiences ', // property named reserved word , you must us
Because I feel that my own JavaScript base is not solid, or can say there is no so-called foundation, so I have been watching the Defined guide of JavaScript recently.While watching, I also made some reading notes, which are all from the book, I just extract some of the content, ready to use the content of each part of the notes to be published as a topic in the
documents are from different sourcesfrom different Web serversDifferent ports for the same hostUsing http: protocol and using HTTPS protocolThe origin of the script itself is not related to the same Origin policy, which is related to the source of the document that the script embeds.Non-strict homologous strategyThe domain property of the Document object. The default domain holds the host name of the server on which the document is loaded. The string must have a valid domain prefix or it itself
subexpression of parentheses (possibly nested), the group index is left-to-right, the left parenthesis, (?: The form of grouping is not numbered
Specify a matching location
/tr>
^
matches the beginning of the string, the multi-row retrieval, Matches the beginning of a line
$
Matches the end of the string, in multiple rows of the search, matches the end of a line
\b
matches the boun
NewPerson ("Nicholas"); } Else { return NULL; } }//good wording.varperson =getperosn ();if(Person!==NULL) {dosomething (); }//bad notation: compare to an uninitialized variablevarPerson ;if(Person! =NULL) {dosomething (); }//bad writing: test to determine whether a parameter is passedfunctiondosomething (arg1, arg2, Arg3, Arg4) {if(Arg4! =NULL) {dosomethingelse (); }}Avoid using special value undefined. Determine if a variable should be defined using the TypeOf operator.// good wordin
1. Desktop, with game consoles, tablets, smartphones2.console.log ()3. "," ", you can identify the string; Null is a special value type; and undefined.4. The object value type is enclosed in curly braces. For example: Var book={topic: "JavaScript"; fat:true};5. Through the "." or "[]" to access the object properties;6.book.content={}; Empty object, no attributes;7. The last element in the array: book[book.length-1];8. "3" + "2", the result is: 32;9. T
In the morning, I saw the article "javascript Weekly Guide" [Phase 3], which contains an articleArticle(Extending JavaScript-the right way), I think it is not bad. I will share the translation with you. This article is not translated word by word and should be as easy as possible.
Original article address: extending JavaScr
object.When the bind () method is called on the function f () to pass in the object O, this method returns a new function that is invoked as an O method when the new function is called.Third, function constructorfunction () constructorThe function () constructor can pass in any number of string arguments, and the text represented by the last argument is the body.
The function () constructor runs JavaScript to create and compile functions dyn
:Console.log (F1); Function F1 () {}Function F1 () {}; declaring functionsCode 6:Console.log (F2); Undefinedvar F2 = function F2 () {}; function expression, which produces the same effect as the declaration of the variable and assigns the valueNote: Learning C and Java all know that you must first declare the data type before using a variable , such as: int A; At the same time, the assignment can be initialized while declaring the variable, for example: int a = 1001;but during the execution of t
Null and undefined comparisonsNull is a JavaScript keyword that represents a non-object.Undefined indicates that there is no value, indicating that the value does not exist or is not initialized.
Same point
Different points
Own type unique value
Null is an object, undefined is a reserved word
No properties and methods
Null is converted into a 0,undefined in a mathematical operation that cann
an object. Then JS uses a special way to convert the object to its original value. Instead of using other arithmetic runner methods to perform object-to-number conversions, the "= =" operator is similar. If you compare an object to an original value, the conversion will follow the way the object is converted to the original value."+" and "= =" Apply the conversion of the object to the original value: basically, the conversion of the object to the number is applied, first call valueof ()Date obj
The object of the JavaScript authoritative guide and the javascript authority
JavaScript objects can be seen as unordered sets of attributes. Each attribute is a key-Value Pair and can be added or deleted.
All things in JavaScript are objects: strings, numbers, arrays, dates
JavaScript authoritative Guide (4): JavaScript scope and Ascending source address: http://dyy.im/4406.htmlDo you know what value will be output when the following JavaScript program executes?var foo = 1;function bar() { if (!foo) { var foo = 10; } alert(foo);}bar();The answer is "10", is it surprising?
common problems in JavaScript code (see http://jslint.com ).
If you have more and more JavaScript bugs, you may be interested in a real JavaScript debugging tool. You can use Microsoft Script Debugger in Internet Explorer. You can use debugging tool extensions (such as Venkman) in Firefox ). These two tools are beyond the scope of this book, but you can easily f
Translator Note: The original author has studied nearly 24,000 JavaScript articles to draw this summary, the full text contains the study guide, the newcomer, Webpack, performance, basic concepts, functional programming, interview, tutorial case, Async Await, concurrency, V8, machine learning, data visualization, debugging , unit testing, and so on, is very suitable for the comparison of their own
The following sections describe a reasonable modern JavaScript development style guide, not a hard rule. Thelawofcodestyleconsistency is a highly unified code style ). The style you choose for the project should be the highest criterion. Place the description in your project and link it to this document to ensure code style consistency, readability, and maintainability.
I. Blank
1. Do not mix spaces and
Document directory
1. modular and reusable code
2. Event Handler
Introduction
Do you know that JavaScript is actually a functional programming language? This guide will teach you how to use the functional features of JavaScript.
Requirement: You should have a basic understanding of JavaScript and DOM.
The purpo
I have been reading the fifth edition of the javascript authoritative guide recently. The variable scope chapter is really tired. However, there are still many gains. I don't know, how do you understand the "Declaration" and "Definition" of variables in languages,
My understanding is as follows:
The "Declaration" variable is just declaration, and the "Definition" variable refers to Declaration and value ass
The fourth part of the weekly JavaScript guide will continue to share with you the latest JavaScript key information, technical articles, development tools, and various new development frameworks, let JavaScript developers understand the technical development trends in the field. This week, toutiao.com published the cr
and executes it as script code.
GetClass ()
Returns the Javaclass of a javaobject.
Isfinite ()
Checks if a value is a number that has a poor size.
IsNaN ()
Checks whether a value is a number.
Number ()
Converts the value of an object to a number.
Parsefloat ()
Parses a string and returns a floating-point number.
parseint ()
Parses a string and returns an integer.
Strin
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.