Regular expression syntaxA regular expression is a text mode consisting of common characters (such as characters a to z) and special characters (such as metacharacters. This mode describes one or more strings to be matched when searching the text
1. javascript is a weak type and does not distinguish between numeric types. variables are defined using Var.
2. NaN = Not a Number
3. Alert (234 + "123") returns 234123. Weak type bias ." + The "sign is converted to the string type.
4. Alert (1 + 2
Have you ever encountered such a situation? You have written a function with no parameters.Js Code1. function showUserInfo (){2. alert ("Hello! I'm James. ");3 .}Call:Js Code1. showUserInfo (); Later, I found that this function is also needed
In HTML5, the data-attributes attribute is added. You can save some data at the page level, for example:Java code1. 2. Hi, Welcome to HTML 5 data attributes! 3.4. Hi Dave! 5. 6.
In jquery, you can use the. data method to obtain and set data
In daily page creation, to facilitate user input, you can often enterWhen the content is displayed, the autocomplete or autosuggestion function is automatically displayed,In this way, user input can be accelerated. The current approach is to use
Method 1: introduce the System. Web. Script. Serialization namespace and use the JavaScriptSerializer class for simple Serialization.Serialization class: PersonnelPublicclass Personnel{Publicint Id {get; set ;}Publicstring Name {get; set ;}}Execute
Javascript implements the display and hiding effects of the layer div. use javascript to set the display attribute of css to block (display) and none (hide). The Code is as follows:[Html] display and hide of div layers in javascript Hello World
Before talking about this question, let's add a few knowledge points. If you know more about this, you can skip it.1. Components of most browsers
The three components at the bottom layer are the network, UI backend, and js interpreter. The
The div of the display data of easyUI has a style, suchAll tables have a datagrid-cell style, so we can use jquery to bind time.The following is the main js Code:
[Javascript]/* Right-click binding */$ (". Datagrid-cell"). live ('textmenu ',
Description: DataTables is a jQuery table plug-in. This is a highly flexible tool based on a step-by-step enhancement that will add advanced interactive control and support for any HTML table.Main features:• Automatic Paging• Real-Time Table Data
When the application has a frameset or iframe page, parent is the parent window, top is the top parent window (some windows have several layers of frameset or iframe), and self is the current window, opener uses the open Method to open the current
The fixed topic at the bottom is sometimes quite necessary, and some browsers are not very compatible.And indicates that it can be implemented.The bottom of the jquery blog is fixed like everyone on campus. It's just a blur.You need to write it
1. Create an objectView Code 1 var person = new Object ();2 person. name = "RuiLiang ";3 person. age = 30;4 person. job = "Teacher ";5 person. sayName = function (){6 alert (this. name );7 };89 person. sayName (); 2. Factory ModelDisadvantage: the
Introduction I encountered a problem today. This problem is also a problem I encountered before. The previous method is also used by most people. You can read my article. Previous Method--I guess this is also the way most people use it. For example,
When multiple values are transmitted using the post method of jquery, the backend page can receive values in array format.As shown below To $. the post method does not support passing parameters in the form of arrays. Therefore, it is passed as a
Cookie. js
[Javascript]/*** @ Name Cookie. js* This should be an older cookie tool. If you want to save it with this tool class* It's okay for unimportant things (such as status), so you don't need to think about the user name and password.*//***
I want to extract the essence of inheritance technology to a simple, reusable, easy to understand, and without any dependencies. In addition, I want to make this result simple and very useful. Here is an example of what I want:Var Person = Class.
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.