2017-01-09 26 views
0

我必须做出评论多线打字稿问题的角度2.我要评论验证码:如何使评论的多线打字稿(角2)

protected _checkingList(data, lists:Array<any>){ 
    let value = false; 
    //if (data['__children'].length > 0){ 
    // value = this.percobaanCentangMajuMundukCantik(data, data['__children'],data['__children'].length); 
    //} 
    if (data.value == true){ 
     value = true; 
    } 

    return value; 
} 

符号“//”是在打字稿中的单一评论,我想做多行评论,有谁知道如何做到这一点?

+1

'/ * * /'不起作用包装您的代码? – Searching

回答

8

以下是多行注释:

/* */ 

它使用相同的评论语法香草的JavaScript。

+0

这是工作谢谢 –

3

我认为你可以/*your code here*/

protected _checkingList(data, lists:Array<any>){ 
    let value = false; 
    /*if (data['__children'].length > 0){ 
     value = this.percobaanCentangMajuMundukCantik(data, data['__children'],data['__children'].length); 
    }*/ 
    if (data.value == true){ 
     value = true; 
    } 

    return value; 
    } 
+0

它的工作谢谢 –