标签:word console function 遍历 print inter load col nload
1 var LODOP; 2 //获取打印机设备数,用于进行遍历 3 var count = LODOP.GET_PRINTER_COUNT();//获取打印机个数 4 window.onload=function print() { 5 for (var i = 0; i < count; i++) { 6 //根据设备序号获取设备名 7 var msg = LODOP.GET_PRINTER_NAME(i); 8 console.log(LODOP.GET_PRINTER_NAME(i)); 9 } 10 }
标签:word console function 遍历 print inter load col nload
原文地址:https://www.cnblogs.com/nlyangtong/p/13331462.html