Code Monkey home page Code Monkey logo

styleguide's Introduction

饿了么代码格式指南

It's dangerous to go alone,为了更好的协作,在新生产的代码或者在约定生效之后被修改的旧代码,作如下约定:

  • 缩进:不混用 space 和 tab,在前端代码中使用 2-spaces 缩进
  • 编码:UTF-8 ( no BOM )
  • 在需要后续修改的代码,最好注释 TODO
// TODO: blah blah bla...
function hello() {
  // ...
}

# 前端相关

  • Style Guide: HTML / CSS / JavaScript
  • 兼容浏览器
    平台浏览器
    **Desktop**IE8+ / FireFox / Chrome / Safari / 其他Webkit内核(360安全、360极速、遨游、搜狗、百度、qq、猎豹等)
    **Mobile**WP8+ / Mobile Safari / Android Broser / 其他(UC、QQ、Chrome、Opera Standard等)

styleguide's People

Contributors

sofish avatar

Watchers

James Cloos avatar wenbin zhou avatar

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.