-
Notifications
You must be signed in to change notification settings - Fork 0
wangnan1305/kingBookApp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
1、直接在命令行运行gulp进行开发,在浏览器打开:http://localhost:5000/index.html 2、源码在src目录下,发布目录在dist 3、对源码的html,js,css文件进行修改会自动刷新和构建. 全局命名空间和包名: window.ebookweb//主包 window.ebookweb.config//一些配置 window.ebookweb.mediator//事件交互 window.ebookweb.events//事件 window.ebookweb.models//数据对象 window.ebookweb.views//视图包 window.ebookweb.views.components//视图组件 window.ebookweb.views.pages//页面 window.ebookweb.utils//一些共用的方法或者类 对应js路径在js目录 模版 templates目录 template/header.html#头部 template/footer.html#底部 template/components/*.html#组件的模版html,命名和id一样,下划线间隔 template/pages/*.html#页面的模版html,命名和id一样,下划线间隔 最终所有html打包成index.html 逻辑和组件js 包名对应文件夹名字 init.js//最先初始化的js router.js//路由 stat.js//统计埋点相关 startwork.js//全部组件打包完成之后前端开始工作,最后执行
About
backbone学习,小项目
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published