JavaScript实现将xml转换成html table
JavaScript实现将xml转换成html table表格的方法。 function ConvertToTable(targetNode) { // if the targetNode is xmlNode this line must be removed // i couldnt find a way to parse xml string to xml node // so i parse xml string to xml document targetNode = targetNode.childNode...
js正则表达式test()和exec()用法
<script type="text/javascript">//正则.test(内容),返回true或falsefunction t1(){ var con = document.getElementsByName('content')[0].value;//需要查找的内容 var reg = /hi/;//需要匹配的内容 CODEGO.NET alert(reg.test(con));}//正则.exec(内容),返回匹配的内容function t2(){ var ...