Name Last Update
apps Loading commit data...
config Loading commit data...
doc Loading commit data...
middleware Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
app.js Loading commit data...
dispatch.js Loading commit data...
dump.rdb Loading commit data...
favicon.ico Loading commit data...
lint-all.js Loading commit data...
lint-commit.js Loading commit data...
oneapm.js Loading commit data...
package.json Loading commit data...
process.json Loading commit data...

基于Express的有货前端开发框架

规约

js模块命令规范

  • JS按大模块放置,比如:home或者guang
  • 页面加载的JS使用*.page.js, 且page的JS只能放在模块下的一级目录
  • 非页面加载的JS直接*.js

页面加载静态资源规范

  • 传模块名module和页面名page,即模块的目录名和当前页面的JS文件名的前缀,以加载对应页面的JS