Previously, in front-end html code, the use of marquee to implement horizontal and vertical scrolling of text or images, but with the consideration of browser compatibility and compliance with w3c standards, next we will introduce how to use Jquery
This article introduces in detail some small details about the performance in Web development. Starting with JavaScript itself, it introduces some functions and programming rules to be avoided in JavaScript, for example, eval's drawbacks:
After some technical documents from google, I found that firefox supports a native bind method, which satisfies our original intention well. The call method is the same as the call and apply method, but after the definition is complete, this method
All languages have their own special features. For JavaScript, using var can declare any type of variables. This script language looks very simple, however, if you want to write elegant code, you need to constantly accumulate experience. Next, we
Today, we need to draw a graph on the web page, think of JS, learn, and search online, and sort and optimize the following code. Note that we use pure js instead of HTML5 canvas, you can refer to the following code to draw a graph on the web page,
There are many slide effects of switching images on the webpage. They are mostly implemented in flash. Can javascript implement them? Of course, I wrote one myself, for more information about how to switch between images on the webpage, see the
Some new users may not be familiar with the differences between imagecreatetruecolor () and imagecreate () in php image generation functions. This article will introduce them in detail, for more information about php image generation functions, see
This article mainly describes the methods of colialization and anti-colialization of this in JavaScript. the topic is from a tweet of BrendanEich (father of JavaScript). this article mainly describes how to commercialize this in JavaScript. the
Speaking of AJAX, there will inevitably be two problems. The first one is the format in which AJAX exchanges data? The second is how to solve cross-origin requirements.
Thanks to the features of the Development Mode Sencha Touch 2, it basically
Syntax errors, also known as parsing errors, occur in the compilation of traditional languages, occur in the interpretation of JavaScript, and runtime errors are also known as exceptions (exception, after the interpreter during compilation)
I. Error
Today, a friend asked me to click a button to bring up a DIV, and asked me to click other places on the page to hide this DIV implementation is also very easy, but note that in the Click Show event, you need to prevent event bubbling. Otherwise, the
In Windows, the Script Host (WSH) function has been provided since the 98 system. WSH can load and run JS and VBS scripts and call the COM components of the system, with the support of COM components, scripts can easily implement very powerful
Javascript is the basis of many things, such as jsp and ajax. If this is not the case, it will be more difficult to learn these things, to lay a solid economic foundation for future learning javascript is an object-based and event-driven, secure
In the past few days, a mootools component was written in the spare time of the evening. The prototype is jQueryUIDialog. To prevent duplication, it is called mooBox. on the one hand, out of interest in mootools (although not as hot as jQuery), on
Uncle Bob proposed and carried forward the Five Principles S.O.L. I. D to better implement object-oriented programming.
Uncle Bob proposed and carried forward the Five Principles S.O.L. I. D to better implement object-oriented programming. The five
For a text, the output text is intercepted and 400 characters are retained. It is troublesome to retain the url, in particular, when there are two identical URLs, you cannot use indexOf to obtain their character locations. Today, you will receive a
Conditional annotations of IE are proprietary (and therefore non-standard) Miscrosoft extensions for regular (X) HTML annotations. As the name suggests, conditional comments allow you to display code blocks (not necessarily css, html code, or even
Today, I saw a technical website. In the code display area, the border will be stretched, making it easy for users to read the experience. I checked the code in a very simple way and used jquery, if it is not applicable, the following jquery
Js calls activeX to obtain the serial number of the USB flash drive. For more information, see.
The Code is as follows:
Function GetDIVORPIV (DIV){Var str;Var arrayDIV = new Array ();If (DIV. indexOf ("_")> 0){ArrayDIV = DIV. split ("_");Str =
For more information about how to use jsdatetime, see.
The Code is as follows:
// Convert a Date string such as "10:18:30" to a Date objectVar strArray = str. split ("");Var strDate = strArray [0]. split ("-");Var strTime = strArray [1]. split (":
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