上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: EventUtil.addHandler(window, "load", function(){ //create a new element. var script = document.createElement("script"); EventUtil.addHandler(script, "readystatechange", function(event){ event = EventUtil.getEvent(event); var ta... 阅读全文
posted @ 2013-12-12 16:05 sexy_girl 阅读(209) 评论(0) 推荐(0) 编辑
摘要: setTimeout(function(){ alert("settimeout"); },0); EventUtil.addHandler(window, "DOMContentLoaded", function(event){ alert("Content loaded."); }); EventUtil.addHandler(window, "load", function(event){ alert("Window loaded."); }); 阅读全文
posted @ 2013-12-12 16:03 sexy_girl 阅读(129) 评论(0) 推荐(0) 编辑
摘要: var menu = { // 当前状态 currentState: 'hide', // 绑定事件 initialize: function() { var self = this; self.on("hover", self.transition); }, // 状态转换 transition: function(event){ switch(this.currentState) { case "hide": this.currentState = 'show'; ... 阅读全文
posted @ 2013-12-12 13:18 sexy_girl 阅读(375) 评论(0) 推荐(0) 编辑
摘要: example.appcache文件中CACHE MANIFEST#2013-12-11test.jstest2.js在apache中AddType text/cache-manifest .appcache 阅读全文
posted @ 2013-12-11 20:26 sexy_girl 阅读(435) 评论(0) 推荐(0) 编辑
摘要: File API Example Select a file below. File API Example 阅读全文
posted @ 2013-12-11 18:00 sexy_girl 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-12-11 17:57 sexy_girl 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Drop some files hereupload.php$f = $_FILES['file0'];var_dump($f); 阅读全文
posted @ 2013-12-11 17:56 sexy_girl 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 在work.html中var data = [1,2,3,4], worker = new Worker('work1.js'); worker.onmessage = function(e){ var data = e.data; console.log('sorted:' + data); } worker.postMessage(data);在work1.js中self.onmessage = function(e){ var data = e.data; data.sort(function(a,b){ ... 阅读全文
posted @ 2013-12-11 17:08 sexy_girl 阅读(166) 评论(0) 推荐(0) 编辑
摘要: window.onload = function () { setTimeout(function () { var pfm = namespace.Performance; }, 300);} 阅读全文
posted @ 2013-12-11 16:29 sexy_girl 阅读(103) 评论(0) 推荐(0) 编辑
摘要: var changeTab =( function () { var timeId = 0; return function (tabId) { if (timeId) { clearTimeout(timeId); timeId = 0; } timeId = setTimeout(function () { //ajax do something }, 500); }; ... 阅读全文
posted @ 2013-12-11 13:24 sexy_girl 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页