1
工作
我有一個應該收集兩套高和低的數字,並將其納入一個字符串的腳本:獲得兩組序列號中的JavaScript
a_low和a_high
b_low和b_high
我發現了一個腳本,並調整了它產生一個組數字(一)
function gennumlst(){
var alow = document.getElementById('a_low').value.replace(/\-/g,'');
var ahigh = document.getElementById('a_high').value.replace(/\-/g,'');
var blow = document.getElementById('b_low').value.replace(/\-/g,'');
var bhigh = document.getElementById('b_high').value.replace(/\-/g,'');
var textout = new Array();
var len = ahigh - alow;
sca = Math.abs(alow);
for (var x = 0; x < len+1; x++){
textout[x] = a + (x+sca) + b;}}
textout = textout.join(delimiter);
document.getElementById('output_box').value = textout;}
我能夠得到A1B,A2B ... A5B等作爲輸出。
我要找的是獲得第二組數字像A1B1,A2B1 .... a5b1,A1B2,A1B3 ... a1b5等工作
感謝您的幫助。
非常感謝Barmar讓它工作。 – user2552534