I ignore caseG Global MatchM multi-line matching/*Zip matchvar pattern =/^[\w\-]+\. (Zip|gz|rar) $/; [a-za-z0-9_] can be replaced with \wPlus ^ Qualifying first character matchvar str = ' 2-13.rar '; File Name: letter _ number.
SummaryIt is difficult to imagine users in what kind of network environment using our development of the application, if the user is in a network environment is not a trusted environment, then the user's account security may be a threat, such as the
Ceiling lamp is a common function of each site, it has two features When you scroll down to the div position, the div remains fixed at the top of the page When you scroll up to the original Div position, the div reverts to the original
The map is very simple to build, and the official API documentation is clearly written, and I'll just summarize:first, the introduction of JS: This is easy to understand, since it is called the JS version of the Baidu map, it must be quoted outside
In JS, in general, the data types are divided into two categories, one is the original value type, and the other is the reference type. The original value types include: string , Numeric (number) , boolean (Boolean) , and two special values null
1. Type analysis:JS data types have undefined,boolean,number,string,object, such as 5, the first 4 are the original type, the 5th is the reference type.var A1;var a2 = true;var a3 = 1;var a4 = "Hello";var A5 = new Object ();var a6 = null;var a7 =
A closed packageThe definition of "closure" (closure) in various professional literature is very abstract and difficult to read. My understanding is that closures are functions that can read other functions ' internal variables.Because in the
just in the program to see a section of JS code, writing extremely clever, selfish thinking if it is written according to the norms, will be able to cultivate the understanding of the language, JS programming ability to improve must be excellent.
1. document.write (""); Output statementThe comments in the 2.JS are//3. Traditional HTML Document order is: document->html-> (head,body)4. The DOM order in a browser window is: window-> (navigator,screen,history,location,document)5. Get the name