GithubHelp home page GithubHelp logo

auto's Introduction

auto

目录结构说明

  • src/ 存放 js less img 等静态资源
  • view/ 存放 smarty 模板
  • mock/ 存放本地假数据
  • dep/ 存放第三方 框架/库
  • cache/ 存放编译后的 smarty 模板(自动生成)
  • output/ edp build 输出的代码

代码规范

注意事项

  1. 严格执行代码规范,统一代码风格

  2. 文件必须在开始处写上 @file@author,表明文件的功能和作者(冤有头,bug有主,不要随意改别人的代码

  3. less 中的 间距颜色字体大小 请使用预定义的变量,便于统一整站样式风格

  4. 模块尽量拆分,如老师详情页,模板可拆为如下格式(less,js同理)

     teacher/
         detail/
             profile.html
             photo.html
             video.html
             ...
         detail.html
    

    好处是避免出现大文件,逻辑清晰,有利于提升团队开发效率

  5. 与 RD 沟通接口时,尽量跟其他 FE 同学沟通一下字段名,避免多处名字不一致,导致混乱

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.