会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
niuk514
博客园
首页
新随笔
联系
订阅
管理
2017年7月24日
jquery .map()方法
摘要: 定义: $.map() 函数用于使用指定函数处理数组中的每个元素(或对象的每个属性),并将处理结果封装为新的数组返回。 注意:1. 在jQuery 1.6 之前,该函数只支持遍历数组;从 1.6 开始,该函数也支持遍历对象。 2. map()还会为函数传入两个参数:其一是当前迭代的元素或属性值,其二
阅读全文
posted @ 2017-07-24 14:20 niuk514
阅读(179)
评论(0)
推荐(0)
2017年7月20日
时间格式化
摘要: SimpleDateFormat 12小时制和24小时制的区别是大写为24小时制,小写为12小时制。使用SimpleDateFormat时格式化时间的 yyyy.MM.dd 为年月日;如果希望格式化时间为12小时制的,则使用hh:mm:ss;而如果希望格式化时间为24小时制的,则使用HH:mm:ss
阅读全文
posted @ 2017-07-20 16:42 niuk514
阅读(133)
评论(0)
推荐(0)
2017年7月19日
Git bash一闪而过,git不能push到远程仓库。
摘要: git错误栈:D:\Git\bin\ssh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 487 解决办法: 进入git目录下的bin目录执行rebase -b 0x76000000 msys-1.0.dll语句。 或者
阅读全文
posted @ 2017-07-19 10:39 niuk514
阅读(1098)
评论(0)
推荐(0)
jQuery获取Select元素,并选择的Text和Value:
摘要: 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var checkText=$("#select_id").find("option:selected").text(); //获取Select
阅读全文
posted @ 2017-07-19 10:37 niuk514
阅读(444)
评论(0)
推荐(0)
2017年7月5日
js 数组
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><title>nnn</title></head><body> <script>var i;//var mycars = new Array();//mycars[0] = "qqq";//mycars
阅读全文
posted @ 2017-07-05 10:32 niuk514
阅读(112)
评论(0)
推荐(0)
javaScript 显示一个钟表
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><title>wwwwww</title><script>function startTime(){ var today=new Date(); var h=today.getHours(); var
阅读全文
posted @ 2017-07-05 10:03 niuk514
阅读(171)
评论(0)
推荐(0)
2017年6月27日
jQuery attr() - 获取属性值
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script><script>$(docume
阅读全文
posted @ 2017-06-27 17:44 niuk514
阅读(323)
评论(0)
推荐(0)
jQuery val() - 获取值
摘要: <!DOCTYPE html><html><meta charset="utf-8"><head><script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script><script>$(docume
阅读全文
posted @ 2017-06-27 17:43 niuk514
阅读(890)
评论(0)
推荐(0)
jQuery text() 和 html() - 获取文本和内容
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script><script>$(docume
阅读全文
posted @ 2017-06-27 17:42 niuk514
阅读(490)
评论(0)
推荐(0)
事件
摘要: jQuery click() 单击 jQuery dblclick() 双击 jQuery mouseenter() 鼠标移动 jQuery mouseleave() 鼠标离开 jQuery mousedown() 鼠标按下 jQuery focus() 和 blur() 焦点
阅读全文
posted @ 2017-06-27 17:40 niuk514
阅读(116)
评论(0)
推荐(0)
下一页
公告