“目标”和“目标”之间有什么区别

问题描述 投票:0回答:1

我编写函数只是将一些属性从一个属性复制到另一个:

function copyProperties(one, another){
    //...
}

但是当我命名这两个参数时,我感到困惑:

source and dest

source and target

我知道这有点荒谬,但是我仍然想帮助...

javascript naming-conventions naming
1个回答
1
投票

dest表示Destinationtarget就是Target

© www.soinside.com 2019 - 2024. All rights reserved.