for (var m = 1;m<21; m++) {
var href = "http://wufazhuce.com/one/vol."+m+"#articulo";
var url = [];
url.push(href);
}
console.log(url);
為什麼這個的輸出是
["http://wufazhuce.com/one/vol.20#articulo"]
沒有1到19的鏈接
把var url = [];放到for循環外面;