if(/chrome/i.test(navigator.userAgent)){//谷敬、Edge
var tr = document.createElement("tr"); var td = document.createElement("td");//设置td标签的属性
td.setAttribute("class","form_label"); td.innerHTML="<p>a</p>b";//<td>放入<tr>
tr.appendChild(td);//<tr>放入<table>
myTable.appendChild(tr);//删除表
myTable.remove();}else{//IE
/*vartc=tb.insertRow(tb.rows.length); var td =rows(tr.rowIndex).insertcell(0);*/
var myNewRow =myTable.insertRow(tb.rows.length); var rows = myTable.rows;
//新创建的行没有单元格,cells.length是0 var cells = myNewRow.cells;
var cell = rows(myNewRow.rowIndex).insertcel1(index);//IE不认识"class",用className设置class属性
cell.setAttribute("className","form_label"); cell.innerHTML="";
myTable.deleteRow(index);//通用 myTable.removeNode(true);}
var ajax = new Ajax("path");
ajax.addParam("paramName",value); ajax.onSuccess = function() {
var result = ajax.getValues("/root/data/返回值对象/对象属性"); ajax.submit();
var oldInput =document.getElementById(id);
var newInput = document.createElement("input"); newInput.type = "file"; newInput.id = oldInput.id;
newInput.size = oldInput.size; newInput.name =oldInput.name;
newInput.className =oldInput.className;
newInput.style.cssText = oldInput.style.cssText;
oldInput.parentNode.replaceChild(newInput,oldInput);
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
if($id("endDate")-getvalue()--null) return true;//如果结束日期未输入,不像比较。 else{
if(hiddenValue>=$id("endDate").getvalue()){f_alert($id("startDate").text,"开始日期不能大于结束日期"); return false;}return true;}}var files = document.body.querySelectorAll("input[type='file']");if(document.all){alert("ie");}else{alert("chrome");//隐藏所有alert_message提示var div = document.body.getElementsByTagName("div"); for(var n = 0;n< div.length ;n++){if(div[n].className =="alert_message" ){div[n].style.display ="";}}size += new File(dobj.getString("attachFileurl")).length();var fileSize =0;var aInput = document.getElementsByTagName('input'); for (var j=0;j<aInput.length;j++){if(aInput[j].type -- "file" && aInput[j].value!=""){//files是FileList,files[0]是选择的文件,如果没有法文件会越界,所以无判断value!="* filesize += aInput[j].files[0].size;if(filesize !=0&& filesize / 1024/ 1024>=10){alert("精要邮件售批时,上传的附件大小会计不能超过10M");}
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
var name = entity.getproperty("name");}
//提交datace1ldatacell.submitAllByHidden();}//新增一行var entity =datacel1.insertEmptyRow();//getCellByRow(row,celIndex) row:行对象//setCellvalue(cell,value)cell:豪格的td对象datace11.setcellvalue(datacel1.getCellByRow(entity,0),"");//正则匹配 var rere = /^\d{18}$|^\d{17}x$/;//18位数字或17位数字+X re=/^[0-9|a-z|A-Z]{9}$/;//9字行(李母+阿拉伯数字) re = /^\d{8}$/;//8位数字re= /^.{6,}$/;//长度不得小于62”; re= /[^\u4E00-\u9FA5]/g;//=文 if(re.test($name("").value)){f_alert($name(""),“谓笔入中文");}//Datevar date = new Date();var month =date.getMonth()+1; var year = date.getFul1Year();//八点开始new Date("yyyy-MM-DD");//零点开始new Date("yyyy-M-DD"); new Date("yyyy-MM-D"); new Date("yyyy-M-D");//j5引擎是单线程,无执行同步代码,再执行事件队列中的异步事件setTimeout("alert('会议正该时间段已被预订,请进择其他时间"",0);$id("startDate").onValidate=function(hiddenValue,Textvalue)if($id("endDate").getValue()==null)otuon +uue://精经两出
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
// w:checkGroup
var g = $id("group1");var rows =g.getSelectRows();for(var i= 0;i < rows.length; i++){alert(rows[i].getParam("select_objs/xxx"));// 获取文件大小new File(dobj.getString("attachFileurl")).length();//敬数组 arguments;//判断英型entity.get("coreCompetency")instanceof string;//sw:1ookup>标签默认取返回值:arg[1];//下拉框//造中京的文本描述,thiz:下拉框对象thiz.options[thiz.selectedIndex].text;//showModalCenter(弹出窗口的地址,传递给穩态对话框的参数,因调函数,弹出窗口的宽度,弹出窗口的高度,弹出窗口的title); window.showModalCenter('kyc/questionary.jsp',obj,callBack,1300,700,填写客户尽职调查表");//弹出酱接收参数var obj = window["dialogArguments"];//弹出蜜退国值window['returnValue']=objs;//原页加国调函微,不写则必须将showModalCenter参数列表中的callBack写为null function callBack(rslt){/*cs1t接收弹出窗的返回值*/}//r:datacellvar datacell =$id('cell1');//获取所有行对象var trs = datacell.getAllRows(true); if(trs.length > 0){for(var i = 0; i< trs.length; i++){//获取一个行对象var entity = datacell.getEntity(trs[i]);//获取银行某字散的值var name = entity.getProperty("name");