自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(68)
  • 资源 (1)
  • 收藏
  • 关注

原创 AMD研究,组件的动态加载。

研究了一下dojo的ADM。明白组件的加载机制了。[code="java"](function(){ var w = window, d = document; if(w.fu) return; var _Class = { create : function(){ return function(){ this.init.apply(this...

2013-11-23 14:41:34 174

原创 代码分行

[code="java"]

2011-08-27 22:57:53 388

原创 Date

[code="html"]//全局函数Date//Date 类的静态方法Date.parseDate.UTC//Date 对象的建立方法new Date()new Date(毫秒数)new Date(标准时间格式字符串)new Date(年, 月, 日, 时, 分, 秒, 毫秒)//Date 对象的更多...

2011-08-26 19:49:11 119

原创 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.你会后悔的 ...

2011-08-17 09:18:53 105

原创 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.Queen B 三个词,八个字母,说出来,我就是你的3. I 和 You...

2011-08-16 18:00:34 277

原创 百度地图

[code="html"] 周边搜索 var map = new B...

2011-07-12 15:38:39 101

原创 TEST_INEDITOR

无标题文档 textarea{border:0} textarea:hover,textarea:focus{background-color:#66CCFF;border:1px solid black} function test(){ var ta = document.getElementById("test"), d = docume...

2011-06-29 06:47:24 118

原创 两栏布局

[code="html"]两栏body{ margin:0px; padding:0px;}#left{ float:left;width:100%;margin-left:-200px;background:#f1f1f1;}#wrapper{ margin-left:200px;}#right{float:right;width:200px;backgr...

2011-06-26 18:13:29 79

原创 液态三栏布局

[code="html"]三栏body { margin: 0px; padding: 0px;}div#header { clear: both; height: 50px; background-color: aqua; padding: 1px;}div#left { float...

2011-06-26 18:06:23 124

原创 Css三角形

css三角形 .tipArrow { /*右边有颜色,其他透明*/ border-color: transparent #e00 transparent transparent; ...

2011-06-26 17:58:36 79

原创 ie6下支持min,max属性

.index{min-width:1005px;_width:expression((document.documentElement.clientWidth||document.body.clientWidth)

2011-06-26 17:56:35 87

原创 IE6/IE7/IE8/Firefox/Chrome/Safari的CSS hack兼容一览表

不同的浏览器对CSS的解释都有一点出入,特别是padding, line-height这些要细微控制的地方,下面的hack基本可以解决这个问题: • 在属性前加下划线(_),那么此属性只会被IE6解释 • 在属性前加星号(*),此属性只会被IE7解释 • 在属性值后面加"\9",表示此属性只会被IE8解释 各浏览器CSS hack兼容表: ...

2011-06-26 17:53:41 116

原创 浏览器判断

[code="java"]B = (function(ua){ var b = { msie : /msie/.test(ua) && !/opera/.test(ua), opera : /opera/.test(ua), safari : /webkit/.test(ua) && !/chrome/.test(ua), firefox : /f...

2011-06-25 14:55:10 93

原创 循环添加事件

[code="java"]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(...

2011-06-24 14:05:16 111

原创 上下选择

[code="html"] html,body,div,a{padding:0;margin:0;} #d{ width:300px; margin:0 auto; border:1px solid #3366FF} #d a{ text-align:center;;width:300px; color:#000000; text-decoration:none...

2011-06-18 22:07:23 114

原创 简易向上的滚动

[code="html"]无标题文档function marQuee(opts){ var g = function(id){return "string" == typeof id ? document.getElementById(id) : id;}, c = function(tagName){return document.createEle...

2011-06-18 17:55:23 98

原创 dojo Menu

[code="html"] Dojo Button Widget Test dojo.require("dijit.dijit"); // optimize: load dijit layer dojo.require("dijit.Menu"); dojo.require("dijit.form.Button...

2011-06-08 13:52:36 96

原创 dojo style

1)dojo.addClass(node: DomNode|String , classStr: String ) 添加某class到节点, var node=dojo.byId('divv');dojo.addClass('divv', 'color');dojo.addClass(node, 's1');2)var bool = dojo.hasCl...

2011-06-06 08:47:19 148

原创 JS中获取各种窗口大小

网页可见区域宽:document.body.clientWidth ­ 网页可见区域高:document.body.clientHeight ­ 网页可见区域宽:document.body.offsetWidth (包括边线的宽) ­ 网页可见区域高:document.body.offsetHeight (包括边线的...

2011-05-29 17:11:36 76

原创 两点间直线

[code="java"]function getLineDot(a, b){ var dot = [], x1 = a.x, x2 = b.x, y1 = a.y, y2 = b.y; var r = Math.floor(Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))); var theta = ...

2011-05-29 17:10:39 188

原创 Chaining

[code="html"]Slide block awaySlide block back A red block dojo.require("dojo.fx"); dojo.ready(function(){ var slideAwayButton = dojo.byId("slideAwayButton"), slideBackButton...

2011-05-27 22:10:49 95

原创 Animation Events

[code="html"]Slide block awaySlide block back A red block dojo.require("dojo.fx"); dojo.ready(function(){ var slideAwayButton = dojo.byId("slideAwayButton"), slideBackButton...

2011-05-27 22:09:33 68

原创 Sliding

[code="html"]Slide block awaySlide block back A red block dojo.require("dojo.fx"); dojo.ready(function(){ var slideAwayButton = dojo.byId("slideAwayButton"), slideBackBu...

2011-05-27 22:07:05 86

原创 Wiping

[code="html"]Wipe block outWipe block in A red block // Load the dojo.fx module dojo.require("dojo.fx"); // Don't forget, when using modules, wrap your code in a dojo.ready doj...

2011-05-27 22:05:04 203

原创 Fadding

[code="html"]Fade block outFade block in A red block dojo.ready(function(){ var fadeOutButton = dojo.byId("fadeOutButton"), fadeInButton = dojo.byId("fadeInButton"), fadeTar...

2011-05-27 22:03:59 151

原创 Dojo.Tree

[code="html"] body, html { font-family:helvetica,arial,sans-serif; font-size:90%; } dojo.require("dojo.data....

2011-05-27 21:14:02 102

原创 Tree_4

treeRootNode.item._S._arrayOfAllItems中_S._arrayOfAllItems,这个属性很重要,所有的item,也就是树中所有的item.itemsArr是全局变量但不是真正的item数组,只是自定义的一些属性item.children就可以得到节点下的所有子节点...

2011-05-25 15:19:49 84

原创 Tree_3

[code="html"]

2011-05-25 08:26:05 158

原创 Tree_2

[code="java"]//节点移动限制判断 function itemTreeCheckItemAcceptance(node,source) { var sourceItemLevel; source.forInSelectedItems(function(item){ sourceItemLevel = item.data.item.level;//这里...

2011-05-25 08:25:18 82

原创 Tree_1

1. dijit.Tree 中的节点属性除固有属性外,还可以随意添加 [code="java"] {identifier: 'id',label: 'name',items: [{ id: '0', name:'李英夫', department : 'w3', children:[ {_reference: '1'}, {_reference: '2'}, {_refer...

2011-05-25 08:21:54 104

原创 Dojo类似Jquery操作DOM的方法

导入NodeList-traverse包[code="javascript"]dojo.require("dojo.NodeList-traverse");[/code]有下列方法:[code="javascript"]dojo.query("#id").next();//当前节点的下一个节点dojo.query("#id").prev();//当前节点的上一个节点...

2011-05-19 10:18:19 79

原创 多对象inherit

[code="java"]var Tool = {};Tool._mixin = function (target, source) { var extraNames, extraLen, empty = {}; for (var i in {toString:1}) { extraNames = []; break; } extraNames = extraN...

2011-05-14 10:04:04 85

原创 字符串连接和StringBuffer的对比

[code="javascript"]function StringBuffer () { this._strings_ = new Array();}StringBuffer.prototype.append = function(str) { this._strings_.push(str);};StringBuffer.prototype.toStri...

2010-08-10 06:31:45 74

原创 Oracle查询外键关联的表

select * from user_cons_columns cl where cl.constraint_name = 'SYS_C0012346';SYS_C0012346是外键名称

2010-07-25 14:31:03 232

原创 获得Event对象

[code="javascript"]function getEvent(){ //同时兼容ie和ff的写法 if(document.all) return window.event; func=getEvent.caller; while(func!=null){ ...

2010-07-08 11:31:13 96

原创 根据类名获得元素

[code="javascript"]/** * 根据类名获得元素 * 参数说明: * 1、className 类名 * 2、tag 元素名 默认所有元素 * 3、elm 父元素 默认doucment */document.getElementsByClassName = function(className, tag, elm) {...

2010-06-30 18:22:45 223

原创 SQLPlus常用命令

SQL*Plus系统环境变量有哪些?如何修改? 实现方法: show和set命令是两条用于维护SQL*Plus系统变量的命令 SQL> show all --查看所有68个系统变量值 SQL> show user --显示当前连接用户 SQL> show error                --显示错误 ...

2010-06-30 09:33:05 79

原创 超长英文自动换行_多浏览器支持

Opera不支持[code="html"] .linebr { clear: both; /* 清除左右浮动 */ width: 100px; /* 必须定义宽度 */ word-break: break-word; /* 文本行的任意字内断开 */ word-wrap: break-word; /* IE */ white-...

2010-06-29 20:18:57 91

原创 If I Had My Life to Live Over

I would have gone to bed when I was sick instead of pretending the earth would go into a holding pattern if I weren't there for the day.I would have burned the pink candle sculpted like a rose bef...

2010-06-29 08:45:05 96

原创 Eric Meyer’s CSS 清零代码

[code="css"]html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,...

2010-06-28 11:49:36 83

java正则表达式实例教程

java正则表达式实例教程.pdf 这个文档还是比较详细的,而且有例子

2010-01-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除