具体实现方法如下:首先要让DIV启用编辑模式通过设定contenteditable=true开启div的编辑模式.这样DIV就可以跟文本框一样输入内容了。不扯话题了。下面说怎么获取或设置光标位置.2个步骤:① 获取DIV中的光标位置② 改变光标位置var cursor = 0; // 光标位置 d...
function CheckForm() { if(document.form1.trainingName.value==""){ alert("培训班名称不能为空!"); document.fo...
function CheckForm() { var classLevel = $("#classLevel").val(); var re = /^[1-9][0-9]*$/; if(!re.test(classL...
记录本例查询初衷:有表:表1,表2,表3关系1 many-to-one 22 many-to-one 3结果:要通过表3中的条件反向查询表1中相关的数据 public Page findPageWeiCommentCommentByUserid( String u...
一,setCycleDetectionStrategy 防止自包含/** * 这里测试如果含有自包含的时候需要CycleDetectionStrategy */ public static void testCycleObject() { CycleObjec...
在使用JSONObject.fromObject的时候,出现“There is a cycle in the hierarchy”异常。意思是出现了死循环,也就是Model之间有循环包含关系;解决办法:使用setCycleDetectionStrategy防止自包含代码:JsonConfig jso...