The ID card number is divided into two, the old one is 15 digits, the new one is 18 digits. ID Card 15-bit encoding rule: dddddd yymmdd xx P dddddd: Region code YYMMDD: Date of birth XX: Sequence class code, cannot determine p: sex, odd for male,
The following is based on the ID number coding rules, using JS to validate the code
The Idcard-validate.js code is as follows:
Copy Code code as follows:
/**
* ID Card 15-bit coding rule: dddddd YYMMDD xx p
* DDDDDD: Area code
*
Judgment questionJudgment question (total Questions , 2 per question points) 1. There are only two values for Boolean type data in PHP: True and False. () ture and flase Chinese translation logic type2. The symbol for connecting two strings in PHP
Take a few simple examples of the judgments involved1. Comparison of file-related judgments#!/bin/Bashif[$#-lt1 ] Then Echo "No file name"Exit1elif[-D $1 ] Then Echo$1is directoryelif[-B $1 ] Then Echo$1is block deviceelif[-
The previous article takes you to play the visual studio--to take you to understand the VC + + various types of engineering a article to say various types VC + + Project main function and the use. Now will take you to develop the C + + program
It is not difficult to do this in fact, on the Internet, there will always be unexpected harvest. But 工欲善其事, its prerequisite. We need to understand the rules of the ID number, the enemy win.The ID number has 15-bit and 18-bit length two, 15-bit
Russian hackers stop countdown timer, Vista is perfectly cracked
A master named Offlinevista in a Russian cracking forum published a test program, This program is used to stop the timer in the Spsys.sys in Vista to stop the activation counter. After
Copy Code code as follows:
/**
* Date into time stamp
* Date format 2011-02-02 21:12:13
* TIME_STR: Date period 2011-02-02
* Fix_time: Time period 21:12:13
*/
function Strtotime (TIME_STR, Fix_time) {
var time = (new Date ()).
The following is based on the ID number coding rules, using JS to validate the code
The Idcard-validate.js code is as follows:
Copy Code code as follows:
/**
* ID Card 15-bit coding rule: dddddd YYMMDD xx p
* DDDDDD: Area code
*
/*** Common Date processing class * description: General Date processing functions * copyright:copyright (c) 2009-2099* Company:fmcc,newland* @author Huang Yongjin*/Package mydate;Import java.io.*;Import Java.util.Date;Import
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
It was a bit urgent, so I didn't consider compatibility.
Implemented through two classes, one is a panel class, the other is a calendar class.
Since I
The first method:
In the user registration page Some requirements are more stringent, need to verify the identity card JS is legitimate, through this function strictly this system software, thus filtering to many water passengers. Here's how to
adorners (adorners are functions used to decorate functions)
Normal functions:
def function name (formal parameter): # variable name
function body return
variable | constant
print function name (argument)
Decorative
>
First function formatfloat (const format:string; value:extended): string; $[sysutils.pasfunction returns the floating-point number type to convert to a string in the specified format string formatDescription Formatfloat (',. 00 ', 1234567890) = '
Date function
Function name
Meaning
Example
GetDate
Returns the current system date and time, the return value type is datetime
Select GETDATE ()//output Current date
Year
Returns
Advanced queries are most frequently used in databases and are also the most widely used. For more information about how to learn sqlserver, see.
Advanced queries are most frequently used in databases and are also the most widely used. For more
One, TimeSpan constants, fieldsTimeSpan.MaxValue; 10675199.02:48:05.4775807Timespan.minvalue; -10675199.02:48:05.4775808TimeSpan.Zero; 0.00:00:00.0Timespan.ticksperday; Number of ticks per day: 864000000000Timespan.ticksperhour; Number of ticks in
Super powerful Form Verification
Form Verification class Validator v1.01
Script
/*************************************** **********
Validator v1.01
Code by my Buddha
Wfsr@cunite.com
Http://www.cunite.com
***********************************
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.