`
Odysseus_110
  • 浏览: 117030 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
使用jQuery的$.getJSON函数似乎是做了缓存处理,比如struts中有一个action是输出的json格式的数据,action路径是getsyncpath: function getResult(){ $.getJSON( getsyncpath,null,function call(data){ var flag_sync = data.result; alert(flag_sync); if(flag_sync == true) { $("#waitdiv").hide( ...
  使用jQuery官方网站提供的例子无法运行,老是报缺少”:” 不知道是什么原因。       Load JSON data using an HTTP GET request. As of jQuery 1.2, you can load JSON data located on another domain if you specify a JSONPcallback, which can be done like so: "myurl?callback=?". (The other domain needs to support JSON-P output ...
我的Eclipse 3.3.2 + MyEclipse 6.0.1 + Tomcat 6.0.16经常报以下错误: An internal error occurred during: "Processing Dirty Regions".org/eclipse/wst/sse/ui/internal/reconcile/validator/ValidationHelper An internal error occurred during: "JSP Content Validator".org/eclipse/wst/sse/ui/internal ...
使用JSON时在页面上的返回值一定要是json格式的数据,例如一个 Map  返回成 Json格式{“result”,true},如果只是返回true ,jquery的getJSON函数不报任何错误,而且浏览器没有任何反应,javaranch上有一位仁兄也碰到同样的问题:           Josh Nathanson   View profile  
在项目中使用到JQuery菜单:http://www.i-marco.nl/weblog/jquery-accordion-menu/     在其他的浏览器里菜单没有问题,但在ie6 下面 会出现不停闪动的情况,最后排查原因,居然是头部的问题, 用这个(这个是eclipse自动生成的)就不行, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>   而必须用i-marco例子里的头就ok了: <!DOCTYPE html PUBLIC ...
  Enums <!---->·    <!---->myEnum.valueOf(String) – returns value of corresponding enum value <!---->·    <!---->yourEnum.values() lists all the possible values of yourEnum <!---->·    <!---->Enums can have instance/member variables, constructors, and method ...
Encapsulation, coupling, cohesion <!---->·    <!---->Good encapsulation promotes loose coupling <!---->·    <!---->Coupling is not used to evaluate classes within the same inheritance tree <!---->·    <!---->Encapsulations limits the ...
java pojo类和hibernate映射文件分别为:   /** * SysRepeaterMng entity. * * @author MyEclipse Persistence Tools */ public class SysRepeaterMng implements java.io.Serializable { // Fields /** * */ private static final long serialVersionUID = -7028035445611074921L; private Long id; pri ...
hibernate配置文件:       <hibernate-mapping> <class name="com.database.BoxBillMng" table="BOX_BILL_MNG" schema="ZHENGJIANG"> <id name="billId" type="java.lang.Long"> <column name="BILL_ID" prec ...
上周在处理json输出值的时候发现输出的都是乱码,和jsp输出一样,只要在servlet里输出加上   response.setCharacterEncoding("UTF-8");  即可解决。
折腾了两天,终于找到原因了,不同浏览器之间的兼容性真是令人头痛的问题。   本来是想从page1.html页面将显示内容传递到page2.html页面,用js接受后显示在页面上,如果用英文一切ok,内容如下:   page1.html(gb2312) function test() { var code = "00:00$午夜新闻%00:30$新闻1+1:时事开讲"; //var code = "sgsgd$sgd%fgsdg$fldg"; window.location = "page2.html?" ...
  // Paging list // Written so that it can be easily subclassed, with easy access to // the parent constructor from the subclass. function PagingList(id, topItem, visibleItems) { if (arguments.length > 0) this.init(id, topItem, visibleItems); } PagingList.prototype.init = funct ...
今天把数据库文件导入mysql中时,开始老是报错:   The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working;   查了一下,原来导入的文件里的数据表用的都是InnoDB引擎: type = InnoDB DEFAULT CHARSET=utf8;   baidu一下: http: ...
页面跳转函数PHP中重新定向到另一个页面 作者:Hunte 来源:Phpuser.com 如何在PHP中从一个页面重定向到另外一个页面呢?这里列出了三种办法,供参考。 一、用HTTP头信息 也就是用PHP的HEADER函数。PHP里的HEADER函数的作用就是向浏览器发出由HTTP协议规定的本来应该通过WEB服务器的控制指令,例如声 明返回信息的类型("Context-type: xxx/xxx"),页面的属性("No cache", "Expire")等等。 用HTTP头信息重定向到另外一个页面的方法如下: < ...
  php 连接 access 的 demo:     <?    $conn = new COM("ADODB.Connection") or die("Cannot start ADO");    // Microsoft Access connection string.    $conn->Open("DRIVER={Microsoft Access Driver(*.mdb)};DBQ=C:\\inetpub\\wwwroot\\php\\mydb.mdb");      //SQL statement to bu ...
Global site tag (gtag.js) - Google Analytics