function fun(a,b){
console.log(`${a},${b}`)
}
fun(123,456);
//123a456b123456
is there a parameter passing method in js similar to
fun (baked 456
, which is not passed sequentially?
function fun(a,b){
console.log(`${a},${b}`)
}
fun(123,456);
//123a456b123456
is there a parameter passing method in js similar to
fun (baked 456
, which is not passed sequentially?
function fun ({x,y,k = 1, j= 2} = {}){}
fun({x:1,y:2,j:3})
then change the parameters to object mode;
Previous: Mini Program failed to decrypt the data?