- 浏览: 50098 次
- 性别:
- 来自: 杭州
最新评论
文章列表
svn插件:sublipse(区subclipse官网查看插件最新版本s)
http://subclipse.tigris.org/update_1.12.x
tomcat插件:tomcatplugin
http://www.eclipsetotale.com/tomcatPlugin.html
maven插件 m2eclipse
m2eclipse官网提供下载链接
1)new Date("month dd,yyyy hh:mm:ss");
2)new Date("month dd,yyyy");
3)new Date(yyyy,mth,dd,hh,mm,ss);
4)new Date(yyyy,mth,dd);
5)new Date(ms);
month:用英文 表示月份名称,从January到December
mth:用整数表示月份,从(1月)到11(12月)
dd:表示一个 月中的第几天,从1到31
yyyy:四位数表示的年份
hh:小时数,从0(午夜)到23(晚11点)
mm: 分钟数,从0到59 ...
${pageContext.request.contextPath} JSP取得绝对路径
原因:mybatis yu mybatis-spring的版本不兼容
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId ...
. 右键单击工程项目 ->点击 properties
2. 选择 Deployment Assembly
3. 点击 Add -> Java Build Path Entries -> Next
4. 选择 Maven Dependencies -> Finish -> Apply -> OK
5. Clean project and server. 重启server
window.event只能在ie下使用,在firefox中无法使用,因为firefox的event只能在事件发生的现场使用
解决方法:在事件发生的函数上加上event参数,在函数体内(假设形参为evt)使用 var myEvent = evt?evt:(window.event?window.event:null)
在Firefox页面调用后,其windows.event对象为undefined:
if (typeof (window.event) == 'undefined')
alert('window.event is undefined.');
else
alert('win ...
spring-web 的jar包已经导入 却报找不到其中org.springframework.web.context.ContextLoaderListener类的错误
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
解决方法:
Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Propert ...
在界面中 input缓存 影响界面效果 希望去除input缓存不出现下拉框
$("input").attr("autocomplete","off");
这句代码则可以完美解决
在进行页面刷新时 刚开始使用ajax局部熟悉 但因为他需要在js中拼接的代码太长,后期改动不方便,且样式调整也不方便,
因为种种不方便采用form提交全页面刷新,
全部刷新时页面滚动条会回复到最顶端,在将使得界面用户体验不好。
因此在页面提交之前,记录滚动条的位置
function ScollPostion() {//滚动条位置
var t, l, w, h;
if (document.documentElement && document.documentElement.scrollTop) {
t = docu ...
http://wgslucky.blog.163.com/blog/static/975625322013991161364/
- 2016-01-09 14:54
- 浏览 317
- 评论(0)
我负责开发子服务开发已经一个月了
现在功能基本都实现了 ,页面还有一些元素错位的问题 ,这个对我来说有一些难度。
我现在说说从一开始开发所遇到的问题:
一开始接手的时候,我没有看过该项目的前一个版本 ...
实用 springmvc 切换iframe界面时 iframe页面不会回到顶端 而是会停留在原先高度
因此百度收了一把如何使页面回到顶端
有几个方法
一:window.scroll(x,y) 窗口中显示的文档滚动到指定的绝对未知
最简单实用window函数 window.scroll(0,0) 直接回到页面顶端 坐上角
二 :window.scrollTo(x,y)功能与window.scroll(x,y)相同
三:window.srollBy(x,y) 将文档滚动到指定的相对位置
例:
window.scrollBy(0,10)
向下滚动1 ...
springmv 切换iframe 时发现直接修改iframe src 或者使用 location.href = "“时不起作用
之后才有form 标段提交 在control中返回新网页的地址 才完成了网页切换
之后iframe自适应高度有出现了问题 子页面中使用document.body.scrollHeight获取的高度值不对
在iframe引用的前一个页面的高度比iframe 引用的次页面高是 document.body.scrollHeight 获取的高度值是上一个页面的 body高度值 导致页面的排版的不美观
解决方法是 :
在iframe ...