Article Introduction: This function is used to set the value of a cookie while providing an optional Max-age property.
This function is used to set the value of a cookie while providing an optional Max-age property:
Store cookies in
/***************************************
* The result is to print out the global
****************************************/
var a = ' global ';
(Test () {
Write (a);
})();
/***************************************
* The result is to
JS gets the project root path, such as: HTTP://LOCALHOST:8083/UIMCARDPRJ
function Getrootpath () {
Get the current URL, such as: http://localhost:8083/uimcardprj/share/meun.jsp
var curwwwpath=window.document.location.href;
Gets the directory after
The author needs a function to do a project: Press a button on the page and open a Save As dialog box.
Originally used VC did such a function, on the Web page to achieve the first time. Google, Csdn and MSDN Search related programs, finally found.
Javascript| Client | data
file://If the input content is not satisfied, it is not committed, and the focus automatically jumps to that location.file:// is much more useful than sending the data at the server side after it is sent!Scripting
Article Introduction: javascript face test.
Requirements:
1, only in the designated location to fill out their own code, the other code in this document can not be modified
2, all topics are not allowed to add global variable
Scripting languages such as page 1.javaScript cannot access local files, although local files can be accessed in some HTML pages on the file:///path or file path on this computer, but this is because the same local files are accessible between them!
AMD Brief Introduction
AMD is the abbreviation of asynchronous module Definition, that is, asynchronous modules loading mechanism. The specification is an API specification of asynchronous dynamically loaded JavaScript code, proposed by COMMONJS.
JavaScript, which provides scripting languages, is very similar to C + +, except that it removes easily-generated errors such as pointers in C and provides a powerful class library. For people who already have C + + or C, learning the JavaScript
No matter how the previous code changes (' PQ ', 1) The value of the number, it is unchanged, or 15 and -1!
How is this going to happen?
Question added: document.write ("string" +str+ "in the former to post PQ appears in the position is:"
In the daily use of the map process, you will often encounter map labels, cue points and other displays do not meet our needs, need to write JavaScript code.For example, in the process of using the map, you will find that many place names appear to
1Retrieves the value of an object, which can be used to enclose a string expression (a valid identifier and not a reserved word). PointRecommended points, as this is more compact and readable.If a property that does not exist is retrieved, undefined
function counter () {
var date = new Date ();
var year = Date.getfullyear ();
var date2 = New Date (year, 12, 31, 23, 59, 59);
/ * Convert into seconds * /
var time = (date2-date)/1000;
var day = Math.floor (Time/
First look at the source graph and the contrast chart converted into particle effects:The picture on the left is the source, and the right picture is a particle. The effect is made on the canvas canvas. Making a picture into a particle effect is
Learn how to use jQuery Form Verification plug-in and calendar plug-in, jquery form
First, you will learn how to use the jQuery Form Verification plug-in:
1. learning and using the Jquery Form Verification plug-in Validation
(1) Validation has
[Front-end]: HTML,]: HTML
Preface: I recently started to learn about the front-end. This blog mainly introduces some main html tags. After writing this blog, I will use the newly learned html to make a simple login interface ~~
I. Introduction to
Single-line text and multi-line text overflow display ellipsis, multi-line text ellipsis1. Single-Line text overflow: hidden; white-space: nowrap; // It is used to process the blank content in the element. Only text-overflow: ellipsis is displayed
HTML condition comments and html commentsPrevious
IE condition annotation is a non-standard logical statement provided by Microsoft since IE5. It allows you to flexibly import different html elements to browsers of different IE versions. Obviously,
Jquery code specifications make the Code look better and better. jquery code specifications
After learning jQuery recently, I feel that jQuery is really good. As he said, I should do less! It feels good to start. However, if you write too much, you
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.