/*-------------------------------------------------------------------------------File Name: check. jsNote: JavaScript scripts are used to check the input data of the webpage submission form.Version: 1.0*//*Purpose: Verify the IP address format.Input:
JPA Development Summary (5)-Multi-to-many bidirectional Association
Continue multi-to-many two-way associated learning, mainly analyzes the example of teachers and students. One teacher has multiple students and one student has multiple teachers,
// Function Name: trim// Function Description: removes spaces at the beginning and end of a string.// Creation Date:// Last Modify By: N/// Last Modify Date: N/String. prototype. trim = function (){Return this. replace (/(^ \ s *) | (\ s * $)/g ,"");
I. Overview of the PlatformThe full name of Java EE is Edition, a specification and standard for developing distributed enterprise-class applications.Three versions of the Java platform:
Java ME (Java micro Edition) Java mini-version
※checkmoney ($C _money) checks whether the data is in 99999.99 format
※CHECKEMAILADDR ($C _mailaddr) to determine if it is a valid mailing address
※CHECKWEBADDR ($C _weburl) to determine whether it is a valid URL
※checkempty ($C _char) to determine
Function Name:trim
Function Description: Removing the trailing spaces of a string
Creation Date:2004-7-13 15:30
Last Modify by:n/a
Last Modify date:n/a
String.prototype.trim=function () {
Return This.replace (/(^\s*) | ( \s*$)/g, "");
}
Function
"Warning": please do not change without permission
"FileName": c_check.inc
"Role": a set of common detection functions
"Author": Sky Ash
"Last Modified Date": 2001/05/11[cxx]
"Variable definition rule": ' C_ ' = character type, ' i_ ' = integral
The example of this article summarizes the method of JS character verification. Share to everyone for your reference. Specifically as follows:
Copy Code code as follows:
/**//**
* Check whether a string of characters entered is a
To share with you often use the JS verification script, very practical, like to collect it.
1//================================================================2//This function is used to limit the number "0" to "9" in the text input box, ".", "-"3//=
Functionobj $ (id) Get object functionval Based on id $ (id) Get object Value functiontrim (str) delete left and right spaces functionltrim (str) delete left space functionrtrim (str) delete the right-side space: functionisEmpty (str); whether the
A good PHP verification class
/**
* Verification class
*
* @ Lastmodify 5-5-16
* @ Author jy625
*/
Class VerifyAction {
/**
* Whether it is null
*/
Public static function
These functions must be tested before they can be used. it is not guaranteed that all functions can be used. many good code functions can be found in phpcms, dedecms, and CMS. // ※Checkmoney ($ C_Money) checks whether the data is in the 99999.99
PHP universal detection function set? // [Warning]: Do not modify it without permission // else //------------------------------------------------------------------------------------------//-------------------------------------
Set of common PHP
※checkmoney ($C _money) Check if the data is in 99999.99 format
※CHECKEMAILADDR ($C _mailaddr) to determine if a valid e-mail address
※CHECKWEBADDR ($C _weburl) to determine if it is a valid URL
※checkempty ($C _char) to determine if a string is
ErrorMsg;} /*** parameter settings * @author sanshi0815* @param string$font font file with a directory text watermark using * @param string$watermark watermark text or image address * @param string$ Srcfile Original Image Address * @param
Translation: http://net.tutsplus.com/tutorials/html-css-techniques/top-15-best-practices-for-writing-super-readable-code/
Jiang Yujie (reprinted please indicate the source-http://blog.csdn.net/hfahe)
Twice in January, we review the favorite articles
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.