上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 1 window.onload = function() { 2 var content = document.getElementById("content"); 3 4 content.onkeypress = function(ev) { 5 ... 阅读全文
posted @ 2015-12-14 00:18 将军喊俺哥 阅读(136) 评论(0) 推荐(0)
摘要: 1 window.oncontextmenu = function(ev) { 2 var ul = document.getElementById("ul1"); 3 var oEvent = ev || event; 4 5 ... 阅读全文
posted @ 2015-12-14 00:17 将军喊俺哥 阅读(146) 评论(0) 推荐(0)
摘要: 1 window.onload = function() { 2 var content = document.getElementById("content"); 3 var info = document.getElementById("info"); ... 阅读全文
posted @ 2015-12-14 00:15 将军喊俺哥 阅读(212) 评论(0) 推荐(0)
摘要: 1 var oEvent = ev || event; 2 var oDiv = document.getElementById("div1"); 3 4 //keyCode 5 //左:37; 6 //上:38; ... 阅读全文
posted @ 2015-12-14 00:13 将军喊俺哥 阅读(214) 评论(0) 推荐(0)
摘要: 1. 跟随鼠标的DIV 1 window.onmousemove = function(ev) { 2 //浏览器兼容 3 var oEvent = ev || event; 4 var oDiv = document.getElementBy... 阅读全文
posted @ 2015-12-14 00:11 将军喊俺哥 阅读(340) 评论(0) 推荐(0)
摘要: 1. 侧边栏广告 1 window.onload = window.onresize = window.onscroll = function() { 2 var oDiv = document.getElementById("div1"); 3 4 //页... 阅读全文
posted @ 2015-12-14 00:03 将军喊俺哥 阅读(227) 评论(0) 推荐(0)
摘要: 1. 先来先服务(FCFS) 2. 短作业优先(SJF) 3. 高优先权优先 4. 高响应比优先 5. 时间片轮转 6. 多级反馈队列 阅读全文
posted @ 2015-12-09 11:25 将军喊俺哥 阅读(133) 评论(0) 推荐(0)
摘要: 1. 区别 splice:用于插入、删除或替换数组的元素。 slice:提取字符串的某个部分,并以心得字符串返回被提取的部分。 共同点:参数为负数的时候,从数组元素的尾部开始算, 1为倒数第一个元素, 2则为倒数第二个元素。 不同点:splice 影响原数组,slice 不影响原数... 阅读全文
posted @ 2015-12-08 20:14 将军喊俺哥 阅读(213) 评论(0) 推荐(0)
摘要: 1. 一句话概括 代码 foo.call(this, arg1, arg2, arg3) == foo.apply(this, arguments) == this.foo(arg1, arg2, arg3) 2. call 的使用 代码 function A() { ... 阅读全文
posted @ 2015-12-08 19:56 将军喊俺哥 阅读(124) 评论(0) 推荐(0)
摘要: 1 /** 2 * Definition for singly-linked list. 3 * function ListNode(val) { 4 * this.val = val; 5 * this.next = null; 6 * } 7 */ 8 /** 9 ... 阅读全文
posted @ 2015-12-08 15:40 将军喊俺哥 阅读(126) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页