1、获取列表框的选择
2、复选框的全选反选
单选框操作:
3、
得到当前数据库相对路径
var pathname = window.location.pathname;
Var pathnameNSF=pathname.substring(0,(pathname.lastIndexOf('.nsf')+5));
得到当前数据库全路径
var pathname = window.location.href;
Var pathnameNSF=pathname.substring(0,(pathname.lastIndexOf('.nsf')+5
4、通过bb来截取从父字符串开始到bb位置的字符串
var aa="hello world!!";
var bb="wor";
var i=aa.lastIndexOf(bb)+3;
alert(aa.substring(0,i));
alert(i.toString());
5、prototype使用
6、this的使用
7、JavaScript遍历table的行和列
8、div显示隐藏
"http://www.w3.org/TR/html4/loose.dtd">
function YY() {
if (document.getElementById("MM").style.display=="block") {
document.getElementById("MM").style.display="none"; }
else {
document.getElementById("MM").style.display="block";}
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22885108/viewspace-622433/ ,如需转载,请注明出处,否则将追究法律责任。