12 2013 档案

$.ajax提交,后台接受到的值总是乱码?明天再总结
摘要://首先说明,我的服务器和页面编码都是GBK,所以尝试了很多种GBK的方式前台:function printFunction(){ window.print(); $.ajax({ url : '/tpzssearch/handleRecordLog.action', type : 'post', //各种尝试 //processData : true, ... 阅读全文

posted @ 2013-12-24 00:22 lovebeauty 阅读(20773) 评论(0) 推荐(0) 编辑

js定义变量需赋予初始值
摘要:这是console.log打印出来的日志,就是多了一个undefined日志: hitTableObjectID:undefinedbfa4be7b-32fc-459a-9092-ecde316b38fc,f7400a4d-4298-43b4-8ce3-ea3aefd70d2e,2fa2c39e-d30c-40e5-b466-d4e8cd95f8be,98ed2f15-562d-401a-bf1b-099cbb3b3890,6e18cbe3-9c9a-42ed-9c2c-7923043888fd虽然javascript是弱类型语言,都是var定义一切,但还是得赋予默认值(数字 var hitT 阅读全文

posted @ 2013-12-23 15:40 lovebeauty 阅读(6365) 评论(0) 推荐(0) 编辑

javascript 遍历object对象
摘要:(function(){ var str = ''; for(var i in obj){ //遍历object str += '\n'+(i+' : '+obj[i]); // i+' : '+object[i] ---> 获取属性名 和 属性值 } alert(str); })(); 阅读全文

posted @ 2013-12-22 22:21 lovebeauty 阅读(1172) 评论(0) 推荐(0) 编辑

struts2获得request和session对象
摘要:在struts1中,获得到系统的request或者session对象非常方便,都是按照形参传递的,但是在struts2中,request和session都被隐藏了struts2提供两种方式访问session和request,其中比较常用的是利用SPRING里面所说的IOC即控制反转1.IOC方式:action类实现ServletRequestAware接口,并新建一个HttpServletRequest requestpublic class UserLoginAction extends ActionSupport implements ServletRequestAware{public 阅读全文

posted @ 2013-12-21 20:16 lovebeauty 阅读(2471) 评论(0) 推荐(0) 编辑

sybase参数调整
摘要:Parameter Name Default Memory Used Config Value Run Value Unit Type ------------------------------ ----------- ----------- ... 阅读全文

posted @ 2013-12-06 18:37 lovebeauty 阅读(1979) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示