JavaScript code used to determine the correctness of input dates in two formats
Simplest
The Code is as follows:
Function isValidDate (dateStr ){Var matchArray = dateStr. match (/^ [0-9] +-[0-1] [0-9]-[0-3] [0-9] $ /)If (matchArray = null ){Alert ("
Sina used to display flash functions, after formatting, you can use it.
Sinaflash. js
The Code is as follows:
/*** @ Author [sina] zhangping1 @* @ Version v1.1.3* Date: 2006-9-8 2006-12-15*/If (typeof (sina )! = "Object") {var sina = {}}Sina. $ =
Using Dojo and JSON to create a function module tree for infinite AJAX dynamic loading. After reading the article "using hibernate to implement infinite tree structure Classification, I also want to share with you the implementation method of the
Description: Using a tabbed interface, this DHTML script lets you display external web pages inline on your page, with the help of the IFRAME tag. we threw in a feature that allows the user to also load the webpage in the entire browser window when
The custom dialog box JavaScript implemented by JQuery provides several dialog box functions, but the functions are very limited. Although you can create more rich dialog box functions in IE by using mode forms, however, only Internet Explorer is
The simple and compact multi-level linkage menu implemented by prototype uses the prototype. js library, which can be found on the Internet and is an open-source js function library.
I have posted several posts on the linkage menu today.
Everyone
The property and prototype of javascript objects are in this relationship. ECMAScript can recognize two types of objects. One is called Native Object and the other is called Host Object, the runtime environment provides a document object, for
JQuery easily implements the page element data verification function ASP. NET provides a variety of data verification controls, but this verification function must be used in server controls; it is not very convenient to use in composite
Simple permission system (Implementation) based on logical operations JS version by slightboy, time: 2006-10-17
This is the JS implementation version. I have previously explained the principles, so I will not explain it here.
For more information,
Use Javascript to determine whether an image exists. If the image does not exist, the code of the default image is displayed. For more information, see. The onerror event of the image object is used to determine whether to change the src of the
Real-time editing of webpage text editing in real time, just like TEXTBOX
function datosServidor () {}; datosServidor. prototype. iniciar = function () {try {// Mozilla/Safari this. _ xh = new XMLHttpRequest ();} catch (e) {// Explorer var _
Js data prototype attributes
Document: prototype attributes
Returns a reference to an object type prototype.
ObjectName. prototype
The objectName parameter is the object name.
Description
The prototype attribute provides a set of basic
How to dynamically generate js classes I recently studied ajax issues. I can generate an xml document on the server side and return it to the front-end.
Xml documents are obtained by xmlHttp. responseXML at the front end.
Assume that the xml
The [JavaScript version] of the Code that automatically generates the article summary is too troublesome for many programs to bypass this issue, and it is often done manually to decide where to truncate the code.
Implementation content: truncate a
Design a program in js so that it can print its own method to collect and design a program in Javascript so that it can print itself
Script (function () {alert ("script" + arguments. callee + "() ")}) () script [Ctrl + A select all Note: If you
Js data toString method toString Method
Returns the string representation of an object.
Objectname. toString ([radix]) parameter
Objectname
Required. The object to be represented by a string.
Radix
Optional. Specifies the hexadecimal format when
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