$(function(){  

$(".commend .limit").subs(14);

{

  var s='',tm=Int($("#update").text());

  if(tm<60){s=tm+'秒钟';}else if(tm<3600){

   s=Int(tm/60)+'分钟';}else if(tm<86400){s=Int(tm/3600)+'小时';

  }else{s=Int(tm/86400)+'天';

  }

 

  $("#update").html(s+'前更新');


动态删除select中的所有options:
function deleteAllOptions(sel){
sel.options.length=0;
}
动态删除select中的某一项option:
function deleteOption(sel,indx){
sel.options.remove(indx);
}
动态添加select中的项option:
function addOption(sel,text,value){
sel.options.add(new Option(text,value));
}


 $("#comtype").change(function(){v=$(this).val();if(v==2)$("#ltp").find("option:eq(1)").remove();});