wdfdfd

<a href='#' onclick="deleteById('commentTable',this)">${filterRemark}</a>
<a href="javascript:reject('${commentid}','${status}')">${relationid}</a>

$('#name').html(ret.name);
 $('#createtime').html(formatDate(new Date(ret.createtime), "yyyy-MM-dd HH:mm:ss"));
 $('#type').html(getTypeName(ret.type));
 $('#status').html(getStatusName(ret.status));
 $('#comments').html(ret.comments);
 $('#filterRemark').html(ret.filterRemark);
 $('#auditComment').html(ret.auditComment);

<input type="hidden" id="userId" name="userId" />


window.location.href = "../../auditmgr/tomeaudit/audit.html?type=comment&ids=" + id;

callUrl("snpCommentsFacade/removeSnpCommentsById.ssm", commentid);可以直接就与service打交道

if(confirm("点击确定将删除此评论?"))

var commentid = _para["commentid"];
if(commentid)
  {
   $('#commentid').val(commentid);
     callSid('getCommentService', commentid);
    } 


formatDate(new Date(ret.createtime), "yyyy-MM-dd HH:mm:ss")

searchTableData('getSearchOriginList','$M.obj_snp','originTable');
                   /                     /             /
               service                  对象           绑定的表格

 

<z:column id=col0 width="10%" caption="<a href='#' onclick='deleteSelected()'>删除所选</a>"
   checkall="true" iskey="true" align="center">
   <input type="checkbox" name='check' value='${creationid}' prop="creationid"/>
</z:column>

<a href='#' onclick="deleteById('originTable',this)">删除</a>

 

  var pkey = $("#textContainer1").val();   ---->jquery获取值
  if(!pkey || pkey.trim().length==0){
  alert("关键词不能为空!");
  return;
  }
  callSid('service1');--->在request中要绑定(参数)


onkeydown="checkMaxInput(this,70,'remLen')"


function selectMenu(oThis, tabID){               ---------->两个表格的切换
     var oTags = document.getElementById("tabtr");
    var oMenu = oTags.getElementsByTagName("td");
     for(i = 0; i < oMenu.length; i++){
         oMenu[i].className = "";
        }
     oThis.className = "on";

     for(i = 0; i<2; i++){
         document.getElementById("tab" + i).style.display = "none";
     }
     document.getElementById(tabID).style.display = "";
     if(tabID=='tab0'){
      callSid('initDeleteService');
     }
  if(tabID=='tab1'){
      searchTableData('service0','[$M.contentFilterObj]','zteTable');
     }
     }
用来选择多表之间的跳转

 document.getElementById("addBtn").style.display="none";
 document.getElementById("updateBtn").style.display="";
                           ----两个按钮,用来显示一个按钮

<input type="button" id="updateBtn" class="inputButton" onclick="updateContentFilter();" value=" 更 新 " style="display:none" />


//删除一条评论
function deleteById(tb, objects) ------------->对表格数据=删除
{
  var objTable = getTableById(tb);
  var tr = objects.parentNode.parentNode;
  var index = tr.rowIndex;
    var obj = objTable.data;
  var commentid = obj[index - 1].commentid;
 
  if(confirm("点击确定将删除此评论?"))
   {
     callUrl("snpCommentsFacade/removeSnpCommentsById.ssm", commentid);
       deleteOneRow(tb, objects, false);
       objTable.data.splice(index - 1, 1);
  }
}

10.
 var map = { newsTitle:newsTitle, typeId:typeId, firsttime:firsttime, lasttime:lasttime };   
 searchTableData('getSnpNewssService',map,'newsTable');                              ------------>多条件查询map

 

11.获得时间:(target="lasttime")var firsttime = $('#firsttime').val();
 var first = Date.parse(firsttime);
 var last = Date.parse(lasttime);
     <z:Calendar id="calendar1" target="lasttime" width ="20px" 
       imgurl="../../../uiloader/images/calendar.gif" formate='yyyy-MM-dd HH:mm:ss' ></z:Calendar>

$('#memberId').append("<a href='/viewMember.html?memberId='" + ret.memberId + ">" + ret.memberId + "</a>");

你可能感兴趣的:(JavaScript,Date,function,calendar,service,input)