This article mainly introduces a complete example of the SeaJS getting started tutorial series, and demonstrates a complete SeaJS development example. For more information, see
A complete example
As I mentioned above, the knowledge points are scattered, so I plan to use a complete SeaJS example to link these knowledge points for my friends to review. This example contains the following files:
1.index.html -- home page.
2. sea. js-SeaJS script.
3. init. js -- init module, which depends on data, jquery, and style modules. Loaded from the home page.
4. data. js-data module, which is pure json data module and loaded by init.
5. jquery. js-jquery module, modular encapsulation of the jQuery library, loaded by init.
6.style.css -- CSS style sheet, which is loaded by init as the style module.
7. The Code of sea. js and jquery. js belongs to the library code, so we will not repeat it here. Here we will only provide the code of the file compiled by ourselves.
Html:
The Code is as follows:
Blog