在JavaScript中返回多個值? - Return multiple values in JavaScript?

問題:

I am trying to return two values in JavaScript. 我試圖在JavaScript中返回兩個值。 Is that possible? 那可能嗎? spa

var newCodes = function() {  
    var dCodes = fg.codecsCodes.rs;
    var dCodes2 = fg.codecsCodes2.rs;
    return dCodes, dCodes2;
};

解決方案:

參考一: https://stackoom.com/question/CEtD/在JavaScript中返回多個值
參考二: https://oldbug.net/q/CEtD/Return-multiple-values-in-JavaScript
相關文章
相關標籤/搜索