I would like to share with you the first time I posted a post in the blog garden. If there is anything wrong, please correct the column.
Let's talk about the usage first:
Directory structure
Procedure
1. Introduce the framework js into the page.
2.
Copy codeThe Code is as follows:
Parcour. using ('System. web. event ');
Window. onload = function (){
Alert (eventUtil); // eventUtil is the class in event. js.
}
You can see the effect. The rest is how to organize and expand your own development libraries.
-- Because you need to synchronously obtain the file content, you need to deploy the file before testing. You can use vs to create a website and copy it to the Project for running.
Advantages of personal summary:
1. You can organize loose js code based on functions or your preferences to facilitate maintenance.
2. Load the required js Code to the page.
Disadvantages:
1. The referenced js Code must be obtained synchronously. Increases the number of requests and reduces performance and experience. (The severity is not tested. It may be suitable for LAN projects ).
Attachment download