随笔分类 -  jquery

jquery实时时间
摘要:function clockon() { thistime= new Date(); var hours=thistime.getHours() var minutes=thistime.getMinutes() var seconds=thistime.getSeconds() if (eval(hours) <10) {hours="0"+hours} if (eval(minute... 阅读全文

posted @ 2010-04-25 12:30 sdh 阅读(259) 评论(0) 推荐(0)

Ajax(jquery、Dom提交+struts1) 乱码解决
摘要:一,jquery框架 1.对于post提交方式 在servlet中对request进行编码:request.setCharacterEncoding("UTF-8"); 2 对于get提交 String username = request.getParameter("username"); username = newString(username.getBytes("ISO-8859-1")... 阅读全文

posted @ 2010-04-25 12:10 sdh 阅读(655) 评论(0) 推荐(0)

jquery+webservice
摘要:1、编写4种WebService方法[WebService(Namespace="http://tempuri.org/")][WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1)][ScriptService]//令WebService成功传入Json参数,并以Json形式返回结果[GenerateScriptType(typeof(... 阅读全文

posted @ 2010-04-25 12:04 sdh 阅读(421) 评论(0) 推荐(0)

导航