Comments make the project more silky

A joke: xiao Ming before the project maintenance cursed when the function is written a tuo x function call to the author to die to malaysians After the director know also speak to buckle performance, in the process of view submitted records Xiao Ming is like a whiner murmured impossible Can't be! oh It was xiao Ming to write their own ahCopy the code

Variables need comments

  1. Need a variable description to state what your variable does

The function requires multi-line comments

  1. Parameter description is required
  2. More than ten lines in a function require a stage description
  3. Add some of the functional phase descriptions you need to the method

The component needs to pass in comments

  1. Passing in parameters requires type and function
  2. You need to define the types and default values of the parameters in props

File comment

  1. Do I need a comment in the header to say what the file is about

The same is true for Vuex

Link: pan.baidu.com/s/1wxaLohzw… Extract code: 5FF5 WebStorm import process after the import can be used shortcut keys

  • This article is participating in the “Nuggets 2021 Spring Recruitment Campaign”, click to see the details of the campaign