The eval () function in javascript is basically the same as the eval function in php. It is an encryption function that allows code to run using the eval function, I 'd like to explain how to use js eval (function (p, a, c, k, e, d ).
Let's take a
Before jquery appeared, we had to use XMLHttpRequest to Create ajax before creating ajax. Next I will take out the ajax I wrote many years ago.
XMLHttpRequest
The Code is as follows:
Copy code
Next let's take a look
In js, cookie operations are related to the storage and clearing time. We only need to set the cookie expiration time to control its storage, below I will summarize some tips for using cookies in js.
Create and store cookies
In this example, we will
UglifyJS is a tool for compressing and beautifying javascript. In its documentation, I see several methods for optimizing if statements. Although I haven't used it for some trial tests, I can see from here that it has done some beautification work
Simple Js Regular Expression: filter out extra characters
Regular Expression is used to remove repeated characters in a string. A simple JavaScript regular expression is used to filter out redundant characters in a string containing repeated
As the namespace changes, the following GM_getValue and GM_setValue cannot be called in unsafeWindow:
// Normal use
GM_setValue ('foo', true );
GM_etValue ('foo ');
// The value of GM cannot be accessed.
$ ("# BtnPost"). click (function (){
GM_
In the Asp.net background code, it is very easy to obtain the URL parameter. You can use Request. QueryString ["paramName. Sometimes I want to get URL parameters in Javascript, but I did not find them in the built-in Javascript method, so I wrote a
1. javascript prototype: prototype requires a constructor to define object members when implementing object-oriented (such as defining a class, methods are attached to the prototype of the constructor.
2. In javascript, prototype of the subclass
The help documentation in Extjs contains some simple queries. grid paging queries only include parameters such as start, limit, sort, and dir by default, but in actual situations, you may need to input custom parameters, I tried it many times but
The tutorial of helping customer House (www.bkjia.com) uses JS to operate an XML document to implement a simple form interaction.
Aspx page:
Reference content is as follows:Aspx page:UName: UCountry: UProvince:UCity:
Aspx. cs:
For example, if you press a different key on the keyboard, the program will jump to a different webpage. In this example, press the B key to go to the home page of the helper, realize the function of Button jump.
press the key B on the keyboard
The Helper home (www.bkjia.com) Tutorial recently implements the single-item selection function when it is working on a project. It can be implemented with RadioButtonList. Unfortunately, the selection of RadioButtonList cannot be canceled.
Helper House (Bkjia.com) TutorialThis tutorial describes a Javascript mask layer and window. In fact, JQuery also has many such plug-ins. I think this is good, so I will share it with you! View the Code directly:
A Javascript mask layer and
Javascript is a magic language, but there is no magic plus operator in it.
Common addition operators can be used:
Addition operation, such as alert (1 + 2) ;=> 3
String connection, for example, alert ("a" + "B"); => "AB"
"+ =" Is also advanced,
Ajax introduction:
The English translation is often the same as that of the Ajax football team. Web application interaction, such as Flickr, Backpack, and Google, has made a qualitative leap in this regard. This term is derived from the conversion
In JavaScript, typeof is used to determine the data type. Only the basic types can be distinguished, namely, "number", "string", "undefined", "boolean", and "object. For arrays, functions, and objects, the relationship is complex. If typeof is used,
Jquery ajax parameter passing and data storage instances are suitable for beginners. First, let's talk about how to use ajax + php for data operations, then we will detail the help instructions on jquery ajax.
Jquery ajax parameter transmission and
Today, we found that jquery 1.7.2 does not call the $. get () method in ie8.1. After debugging, I finally found that I checked ie and opened $. get (). Will be called, and the second call will not work again. So I inferred that it was an ie cache
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service