`
java新手上路
  • 浏览: 81788 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
文章列表
这样写刷新两次 $("#changeMwsAccountWin").window('refresh',"adsfasdf.php"'); $("#changeMwsAccountWin").window('open');   这样写刷新一次 $("#changeMwsAccountWin").window('open'); $("#changeMwsAccountWin").window('refresh','sefsef.php');  
今天写css,设置了两个div在同一层级,结构如下 <div style="float: left;"> </div> <div style="float: left;"> ......... </div> <div class="clear:both;"></div>  到ie上面测试发现一切正常,可是放在google浏览器上确怎么也不存在于同一行 最后,怀疑是不是没有设置第二个div的宽度,导致不能满足分配在一行的宽度?加上宽度,测试, ...
光标定位到文字最后 $("#saveContent").focus().text(content);
解决办法 设置style="margin:auto;"
cc.Scene.prototype.init.call(this);  prototype 相当于cc.Scene的属性或方法的集合对象,属于javascript对象自带属性 .call call不属于函数名,意思是将this看成cc.Scene,调用init方法   var resource = new Array(); var res = resource || []; resource || [];   也可写成 var res=resource?resource:[]  或者  if(resource){ res=resource }else{ ...
今天由于项目需要,需要写个存储过程,这个可是一年才难得写一次。于是没办法,重新捡起来。开始写 写到后来。。 CREATE FUNCTION `getChildLstnotSun`(department_id int) RETURNS varchar(1000) BEGIN DECLARE sTemp VARCHAR(1000); DECLARE sTempChd int; declare fetchSeqOk boolean; declare cur1 CURSOR FOR SELECT departmentId FROM sys_depart ...
获取高度或者宽度使用 $("#content").height(); $("#content").innerHeight();//元素内部区域高度,忽略padding、border $("#content").outerHeight();//忽略边框 $("#content").outerHeight(true);//包含边框高度 $("#content").width(); $("#content").innerWidth();//元素内部区域高度,忽略p ...
按姓名匹配 1,name前缀为aa的所有div的jquery对象 $("div[name^='aa']"); 2,name后缀为aa的所有div的jquery对象 $("div[name$='aa']"); 3,name中包含aa的所有div的jquery对象 $("div[id*='aa']"); 以上返回的都是jquery的集合对象,因此都可以用 .each(function(i){ }); 进行遍历 下面的格式可用于集合,也可以用于匹配单个jquery对象 1, $("tag:ty ...
事件: $('#ff').window({ onResize:function(width, height){ alert(width+"|"+height); } }); 调用方法: $('#ff').window('refresh','www.baidu.com'); 获得属性: $('#ff').window('options')['width']; $('p').panel().title 设置属性: $('p').panel({tt:'asdf'})
鼠标移入和移开黄金搭配 onmouseenter 当用户将鼠标指针移动到对象内时触发。 onmouseleave 当用户将鼠标指针移出对象边界时触发。 $('#xx').hover(function(){ $('#show1').show(); },function(){ $('#show1').hide(); }); 相对于父标签的坐标系 $(selector).position().top $(selector).position().left
Global site tag (gtag.js) - Google Analytics