`
siruoxian
  • 浏览: 231474 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
[_tmpBtn setUserInteractionEnabled:YES]; [_tmpBtn setUserInteractionEnabled:NO];

UIPageControl

pageControl= [[UIPageControl alloc] initWithFrame:CGRectMake(340, 680, 100, 100)]; pageControl.hidesForSinglePage = NO; pageControl.userInteractionEnabled = NO; [pageControl setNumberOfPages:2]; [pageControl setCurrentPage:0];  [pageControl updateCurrentPageDisplay]; [self.view addSubview:pageContro ...
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {    // Overriden to allow any orientation.    return (interfaceOrientation==UIInterfaceOrientationLandscapeLeft)||(interfaceOrientation==UIInterfaceOrientationLandscapeRight);}
UILabel  *topcontent=[[UILabel alloc] initWithFrame:CGRectMake(80, 728, 800, 40)]; [topcontent setCenter:CGPointMake(self.view.frame.size.height/2, self.view.frame.size.width-20)]; topcontent.numberOfLines = 1; topcontent.adjustsFontSizeToFitWidth = YES; topcontent.minimumFontSize = 1.0f;// topconten ...
-、建立 UITableView  DataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)]; [DataTable setDelegate:self]; [DataTable setDataSource:self]; [self.view addSubview:DataTable]; [DataTable release]; 二、UITableView各Method说明   //Section总数- (NSArray *)sectionIndexTitlesForTableView:(UIT ...

UITableView 定义

 UITableView *_table=[[UITableView alloc] initWithFrame:CGRectMake(0,0, 320, 411) style:UITableViewStyleGrouped];设置分组显示
  注:这是在ibator的sqlmap中应用的 <selectKey resultClass="integer" keyProperty="id">     select (case when max(id) is null then 1 else max(id)+1 end)  from TASK_PLAN </selectKey>
在网上看到好多解决的方法,我也都试过了,但放在我的程序时都不管用,最近用下面这种方法解决了 encodeURIComponent(typeName)(这个是在jsp页面使用的),很好用哦。 例如: productsInfoForm.action="productsMessageInfo!showMessage.action?productsMessageInfo.productsId="+productsId+"&productsMessageInfo.productsName="+encodeURIComponent(productsNam ...

getElementsByTagName

    博客分类:
  • java
作 用      传回指定名称的元素集合。 基本语法   objNodeList = xmlDocument.getElementsByTagName(tagname);   说 明   tagname 是一个字符串,代表找到的元素卷标名称。使用tagname "*"传回文件中所有找到的元素。   例子:   function setcolor(){     var but= document.getElementsByTagName('input'); //获取到所有的<input>标签     for (var i=0; i<bu ...
 function ClearHTML(str){    str = str.replace(/<\/?[^>]+>/g,''); //去除HTML tag    str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白    str = str.replace(/\n[\s| | ]*\r/g,'\n'); //去除多余空行    str=str.replace(/&nbsp;/g, "") ; //去除空格    return str;    }
  formeName为你的iframe的id  layer1 为显示页面div的id   红色部分是用来区别ie和ff的 <script type="text/javascript">                           function changeCHK(formName){                               document.getElementById(formName).style.height =140; (formName).contentWindow.document.getElementById( ...
alert可以显示window.returnValue值,但是在页面却返回undefined值   把window.returnValue换成window.parent.returnValue试试看
  一般是select对象加option的时候抛出的错误。 这是由于写法document.getElementById(**).add(new Option(**,**));导致的。它不符合W3C dom标准写法。 解决办法: 1. document.getElementById(**).options.add(new Option(**,**));  IE和FF 都支持2. document.getElementById(**).appendChild(new Option(**,**)); IE不支持但FF支持上面所说的方法document.getElementById(**).add(n ...
  document.getElementById('msgdiv').style.left=getPosLeft(a)+25;    document.getElementById('msgdiv').style.top=getPosTop(a)+15   a为要取到坐标的对象   function getPosLeft(obj){    var l = obj.offsetLeft;    while(obj = obj.offsetParent)    {        l += obj.offsetLeft;    }    return l;}     funct ...
js如下 <!--document.write("<style>");document.write("#__calendar{width:147px;margin:0;padding:0;}");document.write("#calendarTable{ margin:0;padding:0;border:1px solid #000;}");document.write("th,td{margin:0;padding:0px}");document.write("#calendar ...
Global site tag (gtag.js) - Google Analytics