Yesterday shared the http://jscompress.sinaapp.com/this small tool, found that you are still very fond.
So today, I converted it into json. I used json to transmit data and opened APIs.
All functional implementations of this tool are handled by
Object-oriented terminology
Class
Class is the code segment used to create an object as a design blueprint. It describes the features of an object, the attributes of the object, the tasks of using the object, and the responses of the
Copy codeThe Code is as follows:/// ---------------- Author Teng -------------// Verify whether it is nullFunction check_blank (obj, obj_name ){If (obj. value! = ''){Return true;} Else {Alert (obj_name + "cannot be blank! ");Obj. value = "";Return
I have not found an effective solution on the Internet. Here is a seemingly speculative solution:Copy codeThe Code is as follows:$ ("# TxtFillInDate"). datepicker ({MonthNames ', 'August 11', 'August 11', 'August 11'],DayNamesMin: ['day', 'yi', '2',
At the basic level, it is very important to understand how the JavaScript timer works. The timer execution is often different from our intuitive imagination, because the JavaScript engine is single-threaded. Let's first understand how the three
For example, a detailed resume information page is divided into 1, personal data 2, work experience 3, project experience 4, and other information 4 forms.Generally, users are allowed to submit any form separately to the next page for modification
"> screen /css/font.css "rel =" stylesheet "type =" text/css "/> [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
View the results after running specific functions Add f1 Add f2 Add f3 remove f1 remove f2 remove f3 [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute] [Ctrl + A select all Note: If you
I haven't written any articles on code for a long time. The main reason is that the recent work has been concentrated on Demand Analysis. Without the feeling in reality, there is no motivation for writing. A question about the execution sequence of
The Javascript keyword (Reserved Words) refers to the Words that have specific meanings in the Javascript language and become part of the Javascript syntax. Javascript keywords cannot be used as variable names and function names. Using the
When writing a small system, you need to dynamically add form elements and write this tutorial in your own implementation method!I think you have seen similar results on many websites!1. Use the document. createElement method to create an input
Use two div nested link text, the outermost div sets overflow: hidden, and uses js to dynamically control its width to achieve stretching and shrinking. demo of news wheel display
Most users will only want to use the innerText/innerHTML and outerText/outerHTML properties and methods discussed previusly. however, there is some more advanced text manipulation that can be done using a "text range" object. the TextRange object
1. Regular FunctionsCommon javascript Functions include the following nine functions:(1) alert function: displays a warning dialog box, including an OK button.(2) confirm function: displays a confirmation dialog box, including the OK and Cancel
Demo-Drag any of the images [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]You will notice that this code is almost the complete set above, and the drag effect is achieved by combining the
There are many checkboxes in a form. How can I select one and select all of them?---------------------------------------------------------------Function selectAll (checkBoxName ){Var elms = document. getElementsByName (checkBoxName );If (elms.
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