vs2017js method Notes

vs2017 add a comment to js method, as similar to C #

E.g 

function test1(a,b,c){

....

}

On a line function, playing a "/" and then double-click Continuous "*" will appear comment

 

/ **
* The method described herein can write
* @param {number} a Parameters
* @param {Number} B
* @param {Number) C
* /

@param {number} braces which are types of parameters, parameter types can write the js, number string ..

Can also be written {a: number, b: number} in this type of ..typescript

 

After the written comments, calling the method that will be like C # method that has prompted the

Guess you like

Origin www.cnblogs.com/mirrortom/p/11665398.html