`
文章列表
研究了一下dojo的ADM。明白组件的加载机制了。 (function(){ var w = window, d = document; if(w.fu) return; var _Class = { create : function(){ return function(){ this.init.apply(this, arguments); } } }, _each = function(arr, fn){ for(var i = 0; i < arr.length; i++){ i ...

代码分行

<!DOCTYPE html"> <html> <head> <title> </title> <style> html,body{font-family:Arial} div,ol,li{margin-top:0;margin-bottom:0;} div{border:1px solid red} li{margin:0;border-left:1px red solid;padding-left:15px;padding:0;color:#860303} li:ho ...

Date

//全局函数 Date //Date 类的静态方法 Date.parse Date.UTC //Date 对象的建立方法 new Date() new Date(毫秒数) new Date(标准时间格式字符串) new Date(年, 月, 日, 时, 分, 秒, 毫秒) //Date 对象的更多方法 getFullYear (getUTCFullYear) getMonth (getUTCMonth) getDate (getUTCDate) getD ...

Beautiful English 2

17. You can hurt with your words,but sometimes you can hurt more with your silence. 生活中,你说的话可能会伤到别人,但有时候,你的沉默会让人伤的更深 18. [耍狠时用的英语]     a. Just wait and see.咱们走着瞧     b. You'll be sorry.你会后悔的     c. If you're looking for a fight,you don't have to look far.        如果你想找人打架,不用找太远.     d. Watch your mou ...

Beautiful English

1. You are everything when you are with me, and everything is you when you are not. 你在时你是一切,你不在时一切是你 2. Three words, eight letters, say it, and I'm yours. <Gossip Girl>Queen B 三个词,八个字母,说出来,我就是你的 3. I 和 You 中添一个词,哪个能 ...

百度地图

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>周边搜索</title> <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1& ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ut ...

两栏布局

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; chars ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; chars ...

Css三角形

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html>     <head>         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">         <title>css三角形</title>         &l ...
.index{min-width:1005px;_width:expression((document.documentElement.clientWidth||document.body.clientWidth)<1005?"1005px":""); height:100%;}
不同的浏览器对CSS的解释都有一点出入,特别是padding, line-height这些要细微控制的地方,下面的hack基本可以解决这个问题: • 在属性前加下划线(_),那么此属性只会被IE6解释 • 在属性前加星号(*),此属性只会被IE7解释 • 在属性值后面加"\9",表示此属性只会被IE8解释 各浏览器CSS hack兼容表:                     IE6               IE7               IE8                    Firefox                   Chrome    ...
B = (function(ua){ var b = { msie : /msie/.test(ua) && !/opera/.test(ua), opera : /opera/.test(ua), safari : /webkit/.test(ua) && !/chrome/.test(ua), firefox : /firefox/.test(ua), chrome : /chrome/.test(ua) }; var vMark = ""; for(var i ...
var nodes = this.tree.rootNode.getChildren(); for(var i = 0, len = nodes.length; i < len; i++){ (function(index,node){ var inx = index,n = node; dojo.byId("d"+inx).onclick = function(){ myStore.deleteItem(node.item); } })(i,nodes ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; chars ...
Global site tag (gtag.js) - Google Analytics