自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(52)
  • 资源 (4)
  • 收藏
  • 关注

翻译 ajax加载时会导致dom操作被挂起

chrome,IE8,ie9中同步(sync)方式的ajax导致dom更新滞后解决 有需要的朋友可参考一下。当使用sync方式的ajax加载时会导致dom操作被挂起,有此问题的浏览器有chrome,IE8,9等(未详测),举例: 代码如下复制代码dialog = new Dialog({}).open();// sync方式的aj

2016-06-12 16:49:59 2218

原创 linux 安装jdk

1.将下载的文件解压缩到/usr/local/development/jdk1.7.0_042.创建文件/etc/profile.d/development.sh,将下面的内容复制到该文件。export JAVA_HOME=/usr/local/development/jdk1.7.0_04export JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=.

2015-12-01 20:26:32 323

转载 js 加密

1、base64加密base64.js/**** Base64 encode / decode** @author haitao.tu* @date 2010-04-26* @email [email protected]**/ function Base64() { // private property _keyStr = "ABCDEF

2015-11-26 09:30:25 637

转载 字体制作

https://icomoon.io/app

2015-11-16 15:46:15 450

原创 DOS批处理

dos批处理获取当前文件路径的两种方式:1.set pa=%~dp0 echo %pa%2.echo %cd%

2015-09-01 15:43:07 342

原创 RequireJS Optimizer 的使用和配置

RequireJS Optimizer 的配置参数还有很多,完整的参数介绍可以看这里:https://github.com/jrburke/r.js/blob/master/build/example.build.jshttp://www.cnblogs.com/didi/p/4146656.html基本参数介绍:appDir:应用程序的最顶层目录。可选的,如果

2015-08-18 15:38:24 637

转载 Eclipse debug 使用技巧

http://blog.csdn.net/niqinwen/article/details/8965340

2014-10-16 17:06:02 407

转载 Apache Shiro

http://kdboy.iteye.com/

2014-05-12 08:08:29 470

原创 sublimetext -- ??

sublimetext

2014-01-10 15:26:09 419

原创 import jQuery to Browser.

var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);

2014-01-09 17:10:08 504

原创 phantomjs note

useful likns:phantomjscnblogsExample1:test.js:console.log('Hello, world!');phantom.exit();command:phantomjs test.jsExample2:test.jsvar page = require('webpage').create();pa

2014-01-09 17:07:39 623

原创 font resize demo

Text Resize Example .circle{margin:0 auto; width:160px; height:160px; border:20px solid #FF3366; border-radius:120px; text-align:center;} .lblAmount{background:none; line-height:160px; text-a

2013-07-26 15:22:18 420

原创 mouse move direction

currentViewEL.on('mousemove', '.tool-tip', function (event) { if (typeof(last_position.x) != 'undefined') { var deltaX = last_position.x - event.offsetX, deltaY = last_position.y - even

2013-06-18 16:28:29 683

原创 maven learning note

http://juvenshun.iteye.com/blog/349534#bc2311629http://juvenshun.iteye.com/blog/269094http://www.blogjava.net/baoyaer/articles/355040.htmlhttp://search.maven.org/ http://www.mvnsearc

2013-06-18 11:04:31 516

转载 CSRF 待续

http://www.cnblogs.com/hyddd/archive/2009/04/09/1432744.html

2013-04-16 16:55:47 384

转载 js set Cursor style.

http://www.javascripter.net/faq/stylesc.htmInsert title here function setCursorByID(id, cursorStyle) { var elem; if (document.getElementById && (elem = document.getElementById(id))) {

2013-04-12 08:56:24 1139

原创 iframe 待续

1. iframe add content.contaner.find('#alertDetailBox').contents().find('body').append(html);jQuery('#..).contents().find('body').append(content);

2013-03-21 15:51:13 474

转载 svg ----待续

http://www.iteye.com/news/27199

2013-02-22 08:21:32 315

原创 json learning.

1. JSON 语法可以表示三种类型的值。简单值。(字符串,数值,布尔值,null。不支持undefined。)对象。数组。2. JSON对于字符串的标准是使用双引号。3. JSON对象字面量要给属性加双引号。4. JSON对象有两个方法stringify() 和 parse();stringify(‘JavaScript对象’,[过滤器],[字

2013-01-15 16:00:47 235

原创 node.js learning example 2 (非阻塞)

1. index.js.var server = require("./server");var router = require("./router");var requestHandlers = require("./requestHandlers");var handle = {}handle["/"] = requestHandlers.begin;handle["/be

2013-01-10 18:19:25 339

原创 node.js learning example 1 (阻塞)

1.index.jsvar server = require("./server");var router = require("./router");var requestHandlers = require("./requestHandlers");var handle = {}handle["/"] = requestHandlers.begin;handle["/begi

2013-01-10 17:21:48 399

原创 json type string 转 js json object.

1. eval(). function ConvertStringToJsonForJs() { var testJson = '{"family_name":"huang","family_mamber":[{"age":"12","name":"zheng"},{"age":"12","name":"yuen"}]}'; testJson

2013-01-07 16:32:53 283

原创 java object 转 json

package com.***.at.******.delegate.taxinfo;import java.io.IOException;import java.util.ArrayList;import java.util.HashMap;import java.util.Map;import org.codehaus.jackson.JsonGenerationExceptio

2013-01-07 16:22:44 787

转载 JavaScript包依赖管理及Make工具 ----待续

http://hzjavaeyer.group.iteye.com/group/topic/35059http://code.google.com/p/package-js/https://npmjs.org/http://package-js.googlecode.com/hg/docs/Package.html

2012-11-29 11:08:42 391

原创 Highcharts set the min height for (column-stacked-and-grouped) chart.

The mian way.1.use axis.translate function to convert value to pixel and backwardpoint to pixel:plot_y = chart.yAxis[0].translate(point_y)pixel to point, simply add "true" as second para

2012-11-26 16:41:49 1110

转载 JavaScriot 监听(android,ipad.,iphone) 横竖屏切换。

http://stackoverflow.com/questions/1649086/detect-rotation-of-android-phone-in-the-browser-with-javascriptvar supportsOrientationChange = "onorientationchange" in window, orientationEven

2012-11-23 13:14:19 1741 1

转载 JavaScriot 的动态加载 -- 待续

http://raychase.iteye.com/blog/1174367AjaxScriptdojoJquery

2012-10-24 14:24:47 475

原创 JavaScript跨域 --待续

JSONP思路:尽管浏览器不允许页面中的脚本程序跨域读取数据,但却允许HTML引用跨域的资源,如图片,CSS和脚本程序。JSONP Client.JS. function jsonpCallback(result){ alert(result); alert(result[1].name); } <!--

2012-10-24 14:21:35 514

转载 JavaScript 的异步流程控制

http://raychase.iteye.com/blog/1374715http://jscex.info/zh-cn/

2012-10-24 11:45:01 366

转载 height chart bar can draggable.

http://jsfiddle.net/highcharts/AyUbx//** * Experimental Draggable points plugin * Revised 2012-07-09 * * On Saving this jsbin, remember to update http://jsfiddle.net/highcharts/AyUbx/ */(function(High

2012-10-18 16:05:34 807

原创 Customizing chart bar color. Make the bar can filld with picture.

(function() {    var idCounter = 0,        base = Highcharts.Renderer.prototype.color;    Highcharts.Renderer.prototype.color = function(color, elem, prop) {        if (color && color.pattern

2012-10-18 15:58:40 673

原创 highchart customer the bar.

fixedIncome-charts1.js(function() {var each = Highcharts.each,merge = Highcharts.merge,doc = document,math = Math,seriesTypes = Highcharts.seriesTypes,extend = Highcharts.extend,extendClass = Highchar

2012-10-18 15:51:31 602

原创 RESTfull learning resourse

1. https://maven.java.net/service/local/repositories/releases/content/com/sun/jersey/jersey-archive/1.14/jersey-archive-1.14.zip2. http://jersey.java.net/nonav/documentation/latest/user-guide.html#g

2012-10-11 15:45:55 230

转载 The Top 10 Javascript MVC Frameworks Reviewed

http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/1. Ember.js

2012-08-13 18:30:12 451

原创 设置临时环境变量 避免多次重复设置或着修改系统环境变量

1. 避免多次重复设置或着修改系统环境变量。@echo offset JAVA_HOME=C:\Users\Desktop\JRE1.6.0.30set M2_HOME=C:\Users\............@rem %M2_HOME%\ to run any bat you want use JAVA_HOME=C:\Users\Desktop\JRE1.6.0.30.

2012-06-21 15:43:04 1569

原创 js 递归 best practice

知识点.JS 函数内部有两个特殊对象 arguments 和 this.arguments 对象中有一个属性 callee. 该属性是一个指针,指向拥有这个arguments对象的函数。例子.function getJ(num){//Function expression 1. if(num <= 1){ return 1; }else{ return n

2012-06-21 15:17:41 374

原创 tomcat + ssl + (http ---> https)

SSL Configuration. http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html1. use jdk to generate keystore. cd   ..\JRE1.6.0.30\bin      run  keytool -genkey -alias [terry-ssl] -keyalg RSA

2012-06-19 13:34:46 390

转载 js function 的5种不同调用方式

http://devlicious.com/blogs/sergio_pereira/archive/2009/02/09/javascript-5-ways-to-call-a-function.aspx

2012-06-19 13:34:09 415

转载 AJAX(XMLHttpRequest)进行跨域请求方法详解

http://dotnet.aspx.cc/article/3e52138f-17ba-479a-84d6-765411e5a7fe/read.aspxAJAX(XMLHttpRequest)进行跨域请求方法详解(三)作者:孟宪会 阅读:1905 发表于:2010-01-11 09:55:533,带验证信息的请求身份验证是Web开发中经常遇到的问题,在跨域请

2012-06-05 17:24:00 499

转载 Javascript Best Practices

http://www.javascripttoolbox.com/bestpractices/appreciate for additional !!!

2012-03-14 09:22:41 377 1

struts+spring+pule

struts+spring+pule

2013-03-19

JavaScript跨域 node example.

JavaScript跨域 node example.

2013-01-23

maven中文学习资料

maven中文学习,maven-definitive-guide_zh.pdf

2012-06-21

phone test

test app for phone in eclipse.

2012-04-18

空空如也

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

TA关注的人

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