Error handling and debugging (a) the browser reported error 1. IE2. Firefox3.Safari4.Opera5.Chrome (ii) Error handling 1.try-catch statementTry { // may cause error in code }catch(error) { // What to do when an error occurs }A catch receives
The same-origin strategy, a well-known security policy presented by Netscape, is now used by all JavaScript-capable browsers. Why a homologous strategy is required, here is an example:Suppose there is no homologous strategy now, what will happen?
Source: http://www.ido321.com/1019.htmlPs:lz think this title is a bit big, beyond the scope of ability, do not like to touch. Currently only recorded in the LZ capacity within the range, and continue to supplement in the future.One, the mutual
Unary operatorThe unary operator, when processing all non-numeric values, translates the value through number () to a numeric value.Bitwise operators
Negative numbers are stored in the form of twos complement on the computer,
The document represented by the HTML code is a static document that has little interactivity and makes it difficult to make a page dynamic. Adding scripting languages allows data to be processed and validated before it is sent to the server,
Create a custom object with the prototype prototype person:functionPerson (name,sex) { This. Name =name; This. Sex =sex;} Person.prototype={getName:function(){return This. Name}, Getsex:function(){return This. Sex}}varLiu =NewPerson ("LCY",
Vertical center of webpage, vertical center untitled document & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;
Vertical center of webpage
Only tables are used! Q: How can I center the page vertically?
Which man can
Use the simple jQuery method toggleClass to implement line-by-line color change, jquerytoggleclass
Today, toggleClass () is a simple method to implement line-by-line color change: the code is as follows:
interlinecolor lanfeng
Example of getting started with the JavaScript indexOf method (calculate the position where the specified character first appears in the string), javascriptindexof
JavaScript indexOf Method
The indexOf method is used to calculate the position where
Js implements flying star special effect code, js implements star special effect code
The example in this article describes the code for js to implement the special effects of flying stars, which will be shared with you for your reference.
The
An example of JavaScript recursion to implement reverse array string, javascript Recursion
one JavaScript instance per day-recursively reverse array string
Use JavaScript to sort string arrays.
/*** Sort@ Param opt: String Array to be
Learn extjs5 with me (34 -- Design of a single module [2 create a form table bean])Join me in extjs5 (34 -- Design of a single module [2 create a form table and bean]) to create a form scheme table:
CREATE TABLE
JS basics-constructor VS prototype Function
JS is an object-based language. During usage, you may encounter the problem of copying objects. However, if we directly assign 'obj1 = obj1' values, data overwrite may occur. That is, when the referenced
Display and hide of jquery animation-fadeOut-fadeIn-fadeToggle-fadeTo
Show and hide the-fadeOut-fadeIn-fadeToggle-fadeTo code of the jquery Animation:
Display and hide of jquery animation-fadeOut-fadeIn-fadeToggle-fadeTo-title
Json implements asynchronous request to submit comments without redirecting to other pages. json submits comments
Paste the code and read the code to understand the relevant logic.
Html code:
comment: Name: content: existing comments:
Examples of functions with variable JavaScript parameters: javascript variable
Digress: I have been familiar with JavaScript For a long time, but I did not pay attention to it. I have seen JavaScript on many cool and dazzling web pages. Google's
Example of how JS adds a Cookie to retrieve the cookie value and deletes the cookie: jscookie
Cookie is a very useful function that can judge a certain state and the usage in the project is extremely high.Copy codeThe Code is as follows:Function
Jquery sample code for multi-line text image scrolling
Today, I will share a jquery file to implement multi-row scrolling.
I have read a lot of announcements on some Forum websites.
The Code is as follows:
// Multi-row scrolling (function ($) {$. fn.
In javascript, the parameter arguments is used to disguise the method overload, and the javascript function parameter
Methods are overloaded in many object-oriented advanced languages. Javascript has no way to overload this concept. However, we can
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.