Recently, due to project requirements, if the image is larger than 100X100, it is reduced to 100X100. If the image is smaller than this, the original image size is kept. After research, we found that Javascript code can be used for simple
1. length limit:
2. Only Chinese characters are allowed:
﹤input onkeyup="value="/oblog/value.replace(/[^\u4E00-\u9FA5]/g,'')"﹥
3. English only:
﹤ script language=java script ﹥function onlyEng(){if(!
The cache controller mode comes from Ajax patterns and best practice. This Ajax mode is very practical and provides guidance for the client's cache implementation, there is an improvement from the previous idea of caching when using the traditional
I have bought a book titled Javascript advanced programming, by Nicholas C. Zakas.
In general, this book is still acceptable, but after reading this book, there are still a few issues that have plagued me, such as the implementation of private
Json entry guide,As a data manipulation language, it is used to move and manipulate data from Web forms and convert the data into a format suitable for sending to a server program. For example, it can represent arrays and complex objects, not just a
JSON data access is much simpler than XML data access. JSON data can be accessed just like JavaScript objects. For example, in the preceding JSON data, to access the name of the first student, you only need to write: StudentsJSON. student [0]. name.
After reading such a simple and interesting function, you do not need to upgrade your PHP version to the JSON format for example, and try to use Ajax to build your system. In addition, abandon the disgusting and annoying XML to embrace our simple
As a Web Front-end engineer for website development, we should optimize the performance of our self-developed website projects as much as possible, currently, most of the website performance optimizations found on the Internet are translated and
JavaScript is one of the most popular programming languages in the world and is now becoming more and more important to developers. For any JavaScript developer, there are three things that must be understood.
BKJIA-related articles: some unfamiliar
Recently, the Ajax development framework ZK released its latest version ZK 5.0.3. The new version fixes a large number of bugs and adds some new features and features.
BKJIA recommended for editing: simplified the development process to understand
DOM allows you to create your own elements and text nodes and add them to the large document tree. Theoretically, you can remove all elements from the tree, create new elements, or restructure the document tree to completely change the page. However,
What is html dom? Html dom is a collection of nodes or information fragments organized in hierarchies. This hierarchy allows developers to navigate the tree to find specific information.
What is html dom?
What is html dom? Html dom is the
When developing the MOTO product, you may encounter some details. It is annoying, but it is often difficult for many people. Below are some of the problems I have obtained from my actual development experience and hope to help you learn.
Several
Do you know how to use NetBeans4.0 to create a j2-midp RSSReader application? Here we will share with you that by using RSSReader, you can use your mobile device to read RSS feedback information. This application is designed to work with MIDP1.0, so
This article will focus on the configuration process of j2_polish + Eclipse. The first step is to download and install the Eclipse SDK. This process will not be described too much. My default installation path is D: \ ProgramFiles. The second is the
This article briefly introduces the special float Writing Method of css in Javascript. Recently, a program was used to set the float attribute of css in js, and thought it was the same as the usual writing method, first, let's take a look at how to
This article briefly introduces JS method calls between iframe and parent-child windows. JavaScript is used by millions of webpages to improve design, verify forms, detect browsers, create cookies, and more applications, I hope this article will
When a user accesses a webpage, it can create a file on the visitor's machine. We call it a Cookie and write a piece of content to identify different users. If the next time the user visits the webpage, the user can read the content in the file
Do you know the differences between JavaScript and Java? I would like to share with you that JavaScript creators can focus less on program skills, so many Java features are not supported in JavaScript, at the same time, they are two different
This article briefly introduces how JS restricts the number of characters in the Textarea text field. Here we will share with you the code to display the length of the characters that can be entered in a timely manner.
JS limits the number of
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