requestFullscreen全屏具体实现 1.进入全屏 function full(ele) { if (ele.requestFullscreen) { ele.requestFullscreen(); } else if (ele.mozRequestFullScreen) { ele.mozRequestFullScreen(); } else if (ele.webkitRequestFullscreen) { ele.webkitRequestFullscreen(); } el
function validate(){ //var Elements = document.all; var Elements = document.getElementsByTagName("*"); var msgs; var i; for ( i in Elements ) { if ( Elements[i].type == "text" ) { alert(Elements[i].value); } } 这段代码可以遍历页面全部的HTM
function changeFormElementStatus(tagNames) { var tagNameArr = tagNames.split(","); for (var j = 0; j < tagNameArr.length; j++) { var tagName = tagNameArr[j]; var tags = document.getElementsB