0
我努力:追加片段串
args = ["4730/2", "17583/4"];
for (var i = 0; i < args.length; i++) {
console.log('here');
url = args[i] + "/";
};
console.log(url);
我需要連接字符串來產生這樣的:
4730/2/17583/4/4730/2/17583/4
我怎麼能這樣做?
你想循環兩次數組?這將是'url + = ...' – putvande
最新更新:http://stackoverflow.com/a/20637772/1636522:D – leaf