唉,慢了一步,EMeditor的js脚本 for(var i=0;i<1213;i++) { var list; var apng = i +"a"; var bpng = i +"b"; if (document.selection.Find(apng,eeFindNext) == 0) {list = list + apng;} if (document.selection.Find(bpng,eeFindNext) == 0) {list = list + bpng;} document.selection.StartOfDocument(); } document.write(list);