Fight With Me!!!

导航

上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 106 下一页

2016年6月12日 #

js追加子元素

摘要: 在页面加载完毕后,向div元素追加span子元素 <html><head><title>js</title><script type="text/javascript"> window.onload=function(){ var div=document.getElementById("divid 阅读全文

posted @ 2016-06-12 14:58 nickTimer 阅读(504) 评论(0) 推荐(0) 编辑

在javascript中,我怎么得到下拉条顶端与当前可视的顶端高度的距离,不是和网页顶端的距离

摘要: "滚动条顶端距离" + document.documentElement.scrollTop) 阅读全文

posted @ 2016-06-12 14:57 nickTimer 阅读(210) 评论(0) 推荐(0) 编辑

千分位格式化数字

摘要: import java.text.*; //格式化数字 public class number { public static void main(String args[]) { double d = 123456.78; DecimalFor... 阅读全文

posted @ 2016-06-12 14:55 nickTimer 阅读(591) 评论(0) 推荐(0) 编辑

JS处理时间相关

摘要: <script>var d=new Date(); alert(d);alert(d.getMonth());alert(d.getHours());alert(d.getYear());</script> 阅读全文

posted @ 2016-06-12 14:54 nickTimer 阅读(158) 评论(0) 推荐(0) 编辑

jquery 获取和设置Select选项常用方法总结

摘要: 1.获取select 选中的 text:$("#cusChildTypeId").find("option:selected").text();$("#cusChildTypeId option:selected").text()2.获取select选中的 value:$("#ddlRegType  阅读全文

posted @ 2016-06-12 14:53 nickTimer 阅读(827) 评论(0) 推荐(0) 编辑

设置jquery UI 控件的大小

摘要: #ui-datepicker-div { font-size: 12px; } 阅读全文

posted @ 2016-06-12 14:50 nickTimer 阅读(467) 评论(0) 推荐(0) 编辑

cmd登入mysql的命令不要写分号

摘要: 下面是正确的: 下面这个就是错误的 mysqldump同理 阅读全文

posted @ 2016-06-12 13:53 nickTimer 阅读(562) 评论(0) 推荐(0) 编辑

mysql group by

摘要: group by 有一个原则,就是 select 后面的所有列中,没有使用聚合函数的列,必须出现在 group by 后面 阅读全文

posted @ 2016-06-12 13:52 nickTimer 阅读(208) 评论(0) 推荐(0) 编辑

mysql 联合2个列的数据 然后呈现出来

摘要: SELECT a.voyageNum,CONCAT(a.startDate,'~',a.endDate) AS 日期 FROM tchw_voyageoilcost a ,tchw_voyageoilcostinfo b WHERE a.isDeleted=0 AND a.id=b.voyageOi 阅读全文

posted @ 2016-06-12 13:51 nickTimer 阅读(311) 评论(0) 推荐(0) 编辑

JavaScript中清空数组的三种方式

摘要: 方式1,splice 1 2 3 var ary = [1,2,3,4]; ary.splice(0,ary.length); console.log(ary); // 输出 [],空数组,即被清空了 方式2,length赋值为0 这种方式很有意思,其它语言如Java,其数组的length是只读的, 阅读全文

posted @ 2016-06-12 12:53 nickTimer 阅读(193) 评论(0) 推荐(0) 编辑

上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 106 下一页