javascript - Is there any standard for parameter description in js?
世界只因有你
世界只因有你 2017-06-30 09:56:26
0
1
775

When I looked at the axios document today, I saw that the parameter description was written like this:

axios.request(config)

axios.get(url[, config])

axios.delete(url[, config])

axios.head(url[, config])

axios.options(url[, config])

axios.post(url[, data[, config]])

axios.put(url[, data[, config]])

axios.patch(url[, data[, config]])

I found that many open source projects use similar instructions when describing parameters, such as vuejs, jquery, etc. I want to know if this is a convention? Or are there any special regulations? Ask for advice

世界只因有你
世界只因有你

reply all(1)
某草草

[] represents optional parameters,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template