2015-11-28 38 views

回答

1

按照我的理解這gList這是一個數組,所以你需要做的下

var gList = []; 
// ... do some job 
var inputValue = $("#userInput").val(); //console.log(inputValue) 
gList.push(inputValue); // console.log(gList) 

如果gList是一個字符串,你可以連接它gList = gList + inputValue

感謝

相關問題