百度siteapp下的一款跳转的产品,使用起来很方便.你可以用这款JS跳转到手机版,也可以跳转到任何你想跳转的位置. js代码如下: function uaredirect(f) { try { if (document.getElementById("bdmark") != null) { return } var b = false; if (arguments[1]) { var e = window.location.host; var a = window.location.
页面上有两个table,id都是”cont2",现要在js中取到这两个table,改变样式. js实现: var tab2=document.all.cont2(1);var tab=document.all.cont2(0);tab.style.display="none";tab2.style.display="block";
JS下载 function downloadFile(id) { var url = "<%=request.getContextPath()%>/cer/downloadFile"; var form = $("<form></form>").attr("action", url).attr("method", "post"); form.ap