lia_acp
v1.0.0
Published
//初始项目构建案例:创建config.js文件
Readme
//初始项目构建案例--这里仅展示了路由功能,其实lia.js还具备数据响应功能;与event.js结合使用能形成事件处理机制;每个组件都能作为一个页面去执行,拥有自己的生态 //第一步:创建config.js文件 //第二步:复制下面内容到config.js文件中 //第三步:在当前文件夹下新建终端,输入node .\config.js执行该项目配置文件 //第四步:执行src文件夹下的index.html后可以看到一个简单的使用案例
const acp = require('lia_acp');
const fileObj = { src: { public: { image: {}, video: {}, audio: {} }, component: { head: { head_html: 0, head_css: 0, head_js: 0 }, main: { main_html: 0, main_css: 0, main_js: 0 }, anime: { anime_html: 0, anime_css: 0, anime_js: 0 }, comic: { comic_html: 0, comic_css: 0, comic_js: 0 }, novel: { novel_html: 0, novel_css: 0, novel_js: 0 }, game: { game_html: 0, game_css: 0, game_js: 0 }, info: { info_html: 0, info_css: 0, info_js: 0 }, foot: { foot_html: 0, foot_css: 0, foot_js: 0 } }, index_html: 0, index_css: 0, index_js: 0, } }; acp.init(fileObj);
