产品详情
var products = {};var matches = {};var filters = new Array(4);products["CT4"] = true;products["A621"] = true;products["A622"] = true;products["CT2"] = true;products["CT1"] = true;products["CT6"] = true;products["TCP305"] = true;products["P6021"] = true;products["P6022"] = true;products["TCP312"] = true;products["TCP202"] = true;products["TCPA300"] = true;products["TCPA400"] = true;products["TCP303"] = true;products["TCP0030"] = true;products["TCP404XL"] = true;products["TCP0150"] = true;products["A6302"] = true;products["A6303"] = true;products["A6304XL"] = true;matches["CT4"] = "A3,B4";matches["A621"] = "A3,B4";matches["A622"] = "A3,B3";matches["CT2"] = "A1,B1";matches["CT1"] = "A1,B1";matches["CT6"] = "A1,B1";matches["TCP305"] = "A2,B2";matches["P6021"] = "A1,B1";matches["P6022"] = "A1,B1";matches["TCP312"] = "A1,B2";matches["TCP202"] = "A3,B2";matches["TCPA300"] = "";matches["TCPA400"] = "";matches["TCP303"] = "A2,B4";matches["TCP0030"] = "A1,B2";matches["TCP404XL"] = "A1,B4";matches["TCP0150"] = "A2,B4";matches["A6302"] = "A1,B2";matches["A6303"] = "A3,B3";matches["A6304XL"] = "A4,B4";filters[0] = new Array(4);filters[0][0] = "B1";filters[0][1] = "B2";filters[0][2] = "B3";filters[0][3] = "B4";filters[1] = new Array(4);filters[1][0] = "A1";filters[1][1] = "A2";filters[1][2] = "A3";filters[1][3] = "A4";filters[2] = new Array();filters[3] = new Array();function hide(row) { if (document.layers) { document.layers[row].display = 'none'; } else if (document.all) { document.all[row].style.display = 'none'; } else if (document.getElementById) { document.getElementById(row).style.display = 'none'; }}function show(row) { if (document.layers) { document.layers[row].display = ''; } else if (document.all) { document.all[row].style.display = ''; } else if (document.getElementById) { document.getElementById(row).style.display = ''; }}function filter() { // default: all products will display for (p in products) { products[p] = true; } // loop through all columns and eliminate products that don't match ANY selections in a given column for (p in products) { for (f in filters) { // for each filter column, the product only needs to match ONE criteria my_product_column_match = true; // default to "match", this way, if NO checkboxes are checked, the product still displays for (criteria in filters[f]) { // if the box is checked ... if (document.getElementById(filters[f][criteria]) && document.getElementById(filters[f][criteria]).checked) { // and the product matches... if( (matches[p]).indexOf(filters[f][criteria]) != -1 ) { my_product_column_match = true; break; // we only need ONE match, so once we've got it, stop checking criteria } else { my_product_column_match = false; } } } if ( my_product_column_match && products[p] == true) { // if the product matches any checkbox for that column, // AND it hasn't been excluded before, then display it products[p] = true; } else { products[p] = false; } } } // display all products that aren't filtered product_display_count = 0; for (p in products) { if (products[p] === true) { show('row' + p); product_display_count++; } else { hide('row' + p); } } if ( product_display_count == 0 ) { // we didn't have a single product match all criteria document.getElementById('compare_message').innerHTML = "
- 最大电流
- 0 到 10 A
- > 10 到 50 A
- > 50 到 150 A
- > 150 A
- 最小电流
- 0 到 1 mA
- > 1 到 5 mA
- > 5 到 50 mA
- > 50 mA


