ITeye博客

2012 年文章归档

共 3 篇文章

How to Drag and Drop in JavaScript

/ iMouseDown represents the current mouse button state: up or down /* lMouseState represents the previous mouse button state so that we can check for button clicks and button releases: if(iMouseDown && !lMouseState) // button just clicked! if(!iMouseDown && lMouseState) // button just released! */ …

2012-05-16 14:21 · web页面技术

struts2, Springmvc 传递数组到后台的解决方案

http://www.kaixinstudy.com/?p=358 在2次项目中,第一次使用的是struts2 ,第二次使用的是 spring3 mvc .2次的过程中是都要使用到通过 JQUERY AJAX 向后台传递数组的情况。 一开始的想法是:直接 var array = new Array(), 然后在用 Ajax 提交的时候,把这个数组直接赋值给一个需要传递后台的参数中。一切貌似顺利成章。结果却非这样。 同样有此疑问的朋友还有: http://www.iteye.com/problems/56240 原理? 所有传向后台的数组都需要转换成字符串形式。 比如2个name信息 name…

2012-04-17 21:38 · ssh

通过spring取得国际化文件

/* * @(#) ScheduleController.java 2010-4-8 * * Copyright 2010 by TravelSkay Corporation. * No. 11 Huixinxijie, Beijing * * All rights reserved. * * This software is the confidential and proprietary information of * TravelSkay Corporation ("Confidential Information"). You * shall not disclose such C…

2012-03-23 16:18 · java