创建一个具有 2 个参数(myVar1 和 myVar2)的函数,这两个参数都是字符串:
function myFunc(@(6): @(6), @(6): @(6)) {
return(myVar1 + myVar2);
}
function myFunc(myVar1: string, myVar2: string) {
return(myVar1 + myVar2);
}
function myFunc(myVar2: string, myVar1: string) {
return(myVar1 + myVar2);
}