我目前正在定义一个过滤器,即要匹配的字符数组,如下所示:
listholder.innerHTML += "Chair "+row.chair+"-<input type='hidden' id='chair' name='chair[]' value='"+row.chair+"' /><input type='hidden' id='table' name='table' value='"+row.table_id+"' /><input type='hidden' id='item' name='item[]' value='"+row.item1+"' /><input type='hidden' id='price' name='price[]' value='"+row.item1+"' />" + row.item1 + " - " + row.chair + " (<a href='javascript:void(0);' onclick='deleteCar(" + row.id + ");'>Delete Car</a>)<br>";
是否有更合成的方式来定义它,例如。设定间隔
var gFilterALPHA2="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
或
gFilterALPHA2 = [A-Z];