ITeye博客

dingchao.lonton的博客

dingchao.lonton · 共 21 篇文章

XMLHttpRequestUpload

XMLHttpRequestUpload : EventTarget XMLHttpRequestUpload is returned by the XMLHttpRequest.upload property and is used to track the upload status of the send() call. Instance Events onloadstart / 'loadstart' event listener(event : ProgressEvent ) : undefined onprogress / 'progress' event listener(ev…

2014-08-13 14:09 · XMLHttpRequest Level 2 · 评论(0)

JavaScript Test – Round One

老外技术牛就在于他们的高标准,都是一些很基础的问题,但是不一定答得上来。尝试一下,try and try 文章转载自: http://www.hacksparrow.com/hack-sparrows-javascript-test-round-one.html Applying for a job somewhere as a JavaScript developer? Or just wanna see how much of JavaScript you know? Here is something useful and fun for you. Let's assume I won…

2014-08-09 11:20 · 评论(0)

java unsafe 类源码

/** Unsafe.java - Unsafe operations needed for concurrency Copyright (C) 2006 Free Software Foundation This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fou…

2014-08-01 17:47 · 原子操作 CAS · 评论(0)

java annotation

package annotation; import java.io.Serializable; import annotation.ValueBind.fieldType; @SuppressWarnings("serial") public class Student implements Serializable { private String name = ""; public String getName() { return name; } @ValueBind(type = fieldType.STRING, value = "aa") public void setName…

2014-07-08 14:06 · java annotation · 评论(0)

nodejs的一个todo demo

最近在学习nodejs,在网上下载一个todo的demo,整了半天才运行起来,以前的demo是通过mangodb来作为数据库的,我将其修改了一个,改成了mysql

2013-12-14 14:05 · 评论(0)

Spring AOP 编程实现

package spring.test; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.DefaultPointcutAdvisor; import org.springframework.aop.support.NameMatchMethodPointcut; import org.springframework.context.ApplicationContext; import org.springframework.context.suppor…

2013-09-10 20:47 · 评论(0)

osworkflow dynamic split 动态会签的实现

目前 osworkflow的版本是2.8,很久没有更新了,而且这个版本的动态会签无法实现,虽然她提供了 split和join这样的标签,但是split中result的个数是固定的,这往往在我们现实的系统中用的很少,比如 我要给你一个组提供会签功能,而这个组的人数事先是不知道的,所以必须提供动态会签,也就是动态的split。 附件里面是我通过改写osworkflow使其能够动态会签的例子 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow …

2012-09-01 21:23 · 评论(7)

osworkflow+spring+jdbc实现

最近研究osworkflow, 觉得这个工作流框架很轻便灵活,但是只有osworkflow+spring+hibernate的实现,我在想,如果一个大型的工作流系统,数据非常多,岂不是不能用hibernate了?,于是我就照着Hibernate的实现做了一个 Jdbc的的spring实现,反正jdbc可以解决任何数据优化问题, package com.opensymphony.workflow.spi.jdbc; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; impor…

2012-08-25 12:43 · 评论(5)

spring transation源代码研读笔记

最近研读了spring的Transaction的源代码,顺便做个笔记,以防时间长了忘记。 我们知道如果用编码的方式来写spring的事物管理,代码其实是这样子的 PlatformTransactionManager transactionManager = new xxxTransactionManager(); TransactionDefinition transactionDefinition = new DefultTransactionDefinition (); TransactionStatus status = transactionManager .getTransacti…

2012-08-01 11:39 · 评论(0)

spring源码分析之bean之IOC

最近在看spring的源码,正好把其记录下来 一 。 启动过程 在Web服务器tomcat(应用的容器)启动的时候的时候,首先web.xml会自动的加载到容器tomcat里面,所以我们会在web.xml里面加载spring的配置文件,是通过org.springframework.web.context.ContextLoaderListener或者org.springframework.web.context.ContextLoaderServlet加载我们的spring配置文件,我们就拿ContextLoaderListener为例子吧 在ContextLoaderListener这个类中…

2012-06-07 23:02 · 评论(0)

用jquery如何扩展自己的插件

Getting Started To write a jQuery plugin, start by adding a new function property to the jQuery.fn object where the name of the property is the name of your plugin: jQuery.fn.myPlugin = function() { // Do your awesome plugin stuff here }; But wait! Where's my awesome dollar sign that I know and lov…

2012-02-14 17:11 · 评论(0)

彻底理解jQuery UI widget factory

本文原文地址:http://wiki.jqueryui.com/w/page/12138135/Widget-factory All of jQuery UI's widgets and interactions are built from a simple, reusable base - the jQuery UI Widget Factory. It provides a flexible base for building complex, stateful plugins with a consistent API. It is designed not only for plu…

2012-02-10 19:00 · 评论(0)

怎么样用扩展的方式来扩展OperaMasksUI的grid

前面我写了一篇文章来扩展OpreaMasksUI的grid的排序功能和显示详情的功能,不清楚的可以看下我博客的另外一篇文章: http://dingchao-lonton.iteye.com/admin/blogs/1345088 ,但是我修改的时候污染了原来的代码,我觉得这种方式很不好,所以我就用jquery ui的widget factory提供的继承方式来扩展,这样原来的代码可以保持干净; javasscript代码如下: /* * $Id: om-grid.js,v 1.97 2012/01/04 03:28:04 zhoufazhi Exp $ * operamasks-ui om…

2012-02-01 19:09 · 评论(2)

javascript和css兼容汇总

javascript 部分 1. document.form.item 问题 问题: 代码中存在 document.formName.item(“itemName”) 这样的语句,不能在FF下运行 解决方法: 改用 document.formName.elements["elementName"] 2. 集合类对象问题 问题: 代码中许多集合类对象取用时使用(),IE能接受,FF不能 解决方法: 改用 [] 作为下标运算,例: document.getElementsByName(“inputName”)(1) 改为 document.getElementsByName(“inputName…

2012-01-30 18:53 · 评论(0)

怎样通过jquery ui的widget的factory写自己的组件

本贴转自: http://www.cnblogs.com/timy/archive/2011/04/01/2001871.html ,因为写的很好,所以转载了 使用 jQuery UI Widget Factory 编写有状态的插件(Stateful Plugins) Note 这一章节的内容是基于 Scott Gonzalez 一篇博客 Building Stateful jQuery Plugins(已获作者许可) 虽然大多数的 jQuery 插件都是无状态的(stateless),也就是说, 与插件进行交互的就限于调用插件时的那一组对象, 但是有好大一部分功能需求没办法通过这种简单的插…

2012-01-13 21:09 · 评论(0)