![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
pookokok
这个作者很懒,什么都没留下…
展开
-
JavaScript 语法
首先,把CSS和JS标签style属性对照表了解了: CSS 和 JavaScript 标签 style 属性对照表: 盒子标签和属性对照 CSS语法(不区分大小写) JavaScript语法(区分大小写) border border border-bottom borderBottom border-bottom-color转载 2012-02-28 17:27:41 · 523 阅读 · 0 评论 -
js字符串函数(转)
JS自带函数 var a = "hello"; var b = ",world"; var c = a.concat(b); alert(c); //c = "hello,world" var index1 = a.indexOf("l"); //index1 = 2 var index2 = a.indexOf("l",3); //index2 = 3转载 2012-02-29 09:43:09 · 486 阅读 · 0 评论 -
js赋值TextBox
1、document.getElementById("TextBox1").value //好 2、document.getElementById(" ").value //更好 3、如果用到母版页的话ID可能会被改掉 就是前面加一串东西出来 这时候如果不行的话 运行后查看源文件能获得真实的ID -->直接找。。。。。转载 2012-02-28 17:25:52 · 866 阅读 · 0 评论 -
js判断Checkbox的全选,反选,多选与只能选一个
function ShowMDialog(URL,Width,Height,scrollbars) { return window.showModalDialog(URL, "","dialogWidth:"+Width+"px;dialogHeight:"+Height+"px; status:no;directories:no; scrollbars:"+scrollbar转载 2012-02-28 17:40:51 · 813 阅读 · 0 评论 -
js字符串函数 2
字符串(String) 1.声明 var myString = new String("Every good boy does fine."); var myString = "Every good boy does fine."; 2.字符串连接 var myString = "Every " + "good boy " + "does f转载 2012-02-29 10:06:54 · 403 阅读 · 0 评论 -
js 秒表
var se,m=0,h=0,s=0,ss=1; function second(){ if((ss%100)==0){s+=1;ss=1;} if(s>0 && (s%60)==0){m+=1;s=0;} if(m>0 && (m%60)==0){h+=1;m=0;} t=h+"时"+m+"分"+s+"秒"+ss+"毫秒"; document.getElementById("sh转载 2012-02-29 16:07:31 · 590 阅读 · 0 评论