<script type="text/javascript">stBM(290,"basic1",[0,"","","blank.gif",0,"left","default","hand",0,0,-1,560,9999,"solid",0,"#CCCCCC","#fafafa","","repeat",1,"expand_f.gif","expand_uf.gif",9,9,0,"line_def0.gif","line_def1.gif","line_def2.gif","line_def3.gif",1,0,0,2,"center",0,0,0,"","","","",""]);
stBS("p0",[0,0,"",-2,"",-2,50,-1,3]);
stIT("p0i0",["SuperPro Programmers","#","_self","","","file_c.gif","file_uf.gif",20,20,"bold 8pt 'Verdana','Arial'","#000000","none","transparent","","no-repeat","8pt 'Verdana','Arial'","#A20834","none","transparent","","no-repeat","bold 8pt 'Verdana'","#A20834","none","transparent","","no-repeat","8pt 'Verdana'","#A20834","none","transparent","","no-repeat",1,0,"left","middle",0,0,"","","","",0,0,0]);
stBS("p1",[],"p0");
stIT("p1i0",["Hardware Related","",,,,"file_f.gif",,,,"8pt 'Verdana','Arial'",,,,,,,"#666666",,,,,"8pt 'Verdana'","#000000",,,,,,"#666666"],"p0i0");
stBS("p2",[],"p0");
stIT("p2i0",["Is it possible to store the project data on the CF card in a MS FAT32 file format so that it\r\ncan be read and written with CF card reader?","http://www.xeltekusa.com/faq/hr1.html","_top",,,,,,,"7pt 'Verdana','Arial'",,,,,,"7pt 'Verdana','Arial'",,,,,,"7pt 'Verdana'",,,,,,"7pt 'Verdana'"],"p1i0");
stBS("p3",[],"p0");
stIT("p3i0",["The project data can\'t be read out using a CF card reader. CF card on SP3K works as a\r\ndata memory instead of a file diskette. The programmer reads project data from CF card\r\ndirectly and then programs the device. Data security is another concern for such\r\nsolution. The project includes 3 files, *.prj,*.dcf, and *.erp. If you want to send the\r\nproject files to the vendor, you can send the projects that you saved in your computer or\r\nsend the CF card with saved/downloaded project files in it. ","","_self",,,"file_c.gif","file_c.gif"],"p2i0");.
.
.
.stES();
stES();
stES();
stEM();</script>如何对这样的JS 代码内容进行搜索并显示出来。急谢谢大家。

解决方案 »

  1.   

    先得到所有的JS代码,检索代码……哇,之前有人问过类似的东西,得到方法有不少,第一种是得到页面所有的outerHTML。第二种是得到当前的script的内容。function currentScriptFragment() {
        return document.scripts[document.scripts.length-1];
    }
      

  2.   

    你得到代码了,而且是以文本的形式,使用正则、使用indexof,还是使用啥手段,不就可以搜索了么?
      

  3.   

    http://www.co.washington.or.us/FAQSearch.cfm
    我最终要做成这个一样的效果