![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript 记录
IT爷们
无数码工中的一员,只因为热爱我的行业,You are the best!!!
展开
-
js javascript 判断字符串是否包含某字符串,String对象中查找子字符
var Cts = "bblText";if(Cts.indexOf("Text") > 0 ){ alert('Cts中包含Text字符串');}indexOf用法: 返回 String 对象内第一次出现子字符串的字符位置。转载 2011-09-20 12:26:18 · 662 阅读 · 0 评论 -
js 用法随笔
最近总是使用到js,于是自己记录一点:1、js 获取两个时间段之间的差值,保留一位小数点:var productR = $("#Entity_ProductRecoverDate").val(); // MVC3中获取开始时间var createDate = $(原创 2011-09-24 13:36:53 · 272 阅读 · 0 评论 -
JS判断checkbox是否选中
//第几个没有选 <!-- function check(obj) { for(i=0;i<document.all(obj).length;i++) { if(!document.all(obj)[i].checked)alert("第"+(i+1)+"个没有选择") }原创 2011-12-30 16:45:07 · 1981 阅读 · 0 评论