zoukankan      html  css  js  c++  java
  • 愚蠢的人才干得出的代码

    function setTimeStart(selectId)
    {
    var a=new Option();
    a.value="08:00";
    a.text="08:00";
    a.selected="selected";
    selectId.options.add(a);
    a=new Option();
    a.value="08:30";
    a.text="08:30";
    selectId.options.add(a);
    a=new Option();
    a.value="09:00";
    a.text="09:00";
    selectId.options.add(a);
    a=new Option();
    a.value="09:30";
    a.text="09:30";
    selectId.options.add(a);
    a=new Option();
    a.value="10:00";
    a.text="10:00";
    selectId.options.add(a);
    a=new Option();
    a.value="10:30";
    a.text="10:30";
    selectId.options.add(a);
    a=new Option();
    a.value="11:00";
    a.text="11:00";
    selectId.options.add(a);
    a=new Option();
    a.value="11:30";
    a.text="11:30";
    selectId.options.add(a);
    a=new Option();
    a.value="12:30";
    a.text="12:30";
    selectId.options.add(a);
    a=new Option();
    a.value="13:00";
    a.text="13:00";
    selectId.options.add(a);
    a=new Option();
    a.value="13:30";
    a.text="13:30";
    selectId.options.add(a);
    a=new Option();
    a.value="14:00";
    a.text="14:00";
    selectId.options.add(a);
    a=new Option();
    a.value="14:30";
    a.text="14:30";
    selectId.options.add(a);
    a=new Option();
    a.value="15:00";
    a.text="15:00";
    selectId.options.add(a);
    a=new Option();
    a.value="15:30";
    a.text="15:30";
    selectId.options.add(a);
    a=new Option();
    a.value="16:00";
    a.text="16:00";
    selectId.options.add(a);
    a=new Option();
    a.value="16:30";
    a.text="16:30";
    selectId.options.add(a);
    a=new Option();
    a.value="17:00";
    a.text="17:00";
    selectId.options.add(a);
    a=new Option();
    a.value="17:30";
    a.text="17:30";
    selectId.options.add(a);
    a=new Option();
    a.value="18:00";
    a.text="18:00";
    selectId.options.add(a);
    a=new Option();
    a.value="18:30";
    a.text="18:30";
    selectId.options.add(a);
    a=new Option();
    a.value="19:00";
    a.text="19:00";
    selectId.options.add(a);
    a=new Option();
    a.value="19:30";
    a.text="19:30";
    selectId.options.add(a);
    a=new Option();
    a.value="20:00";
    a.text="20:00";
    selectId.options.add(a);

     //setSelect("start","08:00");

    }

    function setTimeEnd(selectId)
    {
    var a=new Option();
    a.value="08:00";
    a.text="08:00";
    selectId.options.add(a);
    a=new Option();
    a.value="08:30";
    a.text="08:30";
    selectId.options.add(a);
    a=new Option();
    a.value="09:00";
    a.text="09:00";
    selectId.options.add(a);
    a=new Option();
    a.value="09:30";
    a.text="09:30";
    selectId.options.add(a);
    a=new Option();
    a.value="10:00";
    a.text="10:00";
    selectId.options.add(a);
    a=new Option();
    a.value="10:30";
    a.text="10:30";
    selectId.options.add(a);
    a=new Option();
    a.value="11:00";
    a.text="11:00";
    selectId.options.add(a);
    a=new Option();
    a.value="11:30";
    a.text="11:30";
    selectId.options.add(a);
    a=new Option();
    a.value="12:30";
    a.text="12:30";
    selectId.options.add(a);
    a=new Option();
    a.value="13:00";
    a.text="13:00";
    selectId.options.add(a);
    a=new Option();
    a.value="13:30";
    a.text="13:30";
    selectId.options.add(a);
    a=new Option();
    a.value="14:00";
    a.text="14:00";
    selectId.options.add(a);
    a=new Option();
    a.value="14:30";
    a.text="14:30";
    selectId.options.add(a);
    a=new Option();
    a.value="15:00";
    a.text="15:00";
    selectId.options.add(a);
    a=new Option();
    a.value="15:30";
    a.text="15:30";
    selectId.options.add(a);
    a=new Option();
    a.value="16:00";
    a.text="16:00";
    selectId.options.add(a);
    a=new Option();
    a.value="16:30";
    a.text="16:30";
    selectId.options.add(a);
    a=new Option();
    a.value="17:00";
    a.text="17:00";
    selectId.options.add(a);
    a=new Option();
    a.value="17:30";
    a.text="17:30";
    selectId.options.add(a);
    a=new Option();
    a.value="18:00";
    a.text="18:00";
    a.selected="selected";
    selectId.options.add(a);
    a=new Option();
    a.value="18:30";
    a.text="18:30";
    selectId.options.add(a);
    a=new Option();
    a.value="19:00";
    a.text="19:00";
    selectId.options.add(a);
    a=new Option();
    a.value="19:30";
    a.text="19:30";
    selectId.options.add(a);
    a=new Option();
    a.value="20:00";
    a.text="20:00";
    selectId.options.add(a);

     //setSelect("end","18:00");

    }


    function setTime(selectId,time)
    {
    var a=new Option();
    a.value=time;
    a.text=time;
    a.selected="selected";
    selectId.options.add(a);

    var a=new Option();
    a.value="08:00";
    a.text="08:00";
    selectId.options.add(a);
    a=new Option();
    a.value="08:30";
    a.text="08:30";
    selectId.options.add(a);
    a=new Option();
    a.value="09:00";
    a.text="09:00";
    selectId.options.add(a);
    a=new Option();
    a.value="09:30";
    a.text="09:30";
    selectId.options.add(a);
    a=new Option();
    a.value="10:00";
    a.text="10:00";
    selectId.options.add(a);
    a=new Option();
    a.value="10:30";
    a.text="10:30";
    selectId.options.add(a);
    a=new Option();
    a.value="11:00";
    a.text="11:00";
    selectId.options.add(a);
    a=new Option();
    a.value="11:30";
    a.text="11:30";
    selectId.options.add(a);
    a=new Option();
    a.value="12:30";
    a.text="12:30";
    selectId.options.add(a);
    a=new Option();
    a.value="13:00";
    a.text="13:00";
    selectId.options.add(a);
    a=new Option();
    a.value="13:30";
    a.text="13:30";
    selectId.options.add(a);
    a=new Option();
    a.value="14:00";
    a.text="14:00";
    selectId.options.add(a);
    a=new Option();
    a.value="14:30";
    a.text="14:30";
    selectId.options.add(a);
    a=new Option();
    a.value="15:00";
    a.text="15:00";
    selectId.options.add(a);
    a=new Option();
    a.value="15:30";
    a.text="15:30";
    selectId.options.add(a);
    a=new Option();
    a.value="16:00";
    a.text="16:00";
    selectId.options.add(a);
    a=new Option();
    a.value="16:30";
    a.text="16:30";
    selectId.options.add(a);
    a=new Option();
    a.value="17:00";
    a.text="17:00";
    selectId.options.add(a);
    a=new Option();
    a.value="17:30";
    a.text="17:30";
    selectId.options.add(a);
    a=new Option();
    a.value="18:00";
    a.text="18:00";
    selectId.options.add(a);
    a=new Option();
    a.value="18:30";
    a.text="18:30";
    selectId.options.add(a);
    a=new Option();
    a.value="19:00";
    a.text="19:00";
    selectId.options.add(a);
    a=new Option();
    a.value="19:30";
    a.text="19:30";
    selectId.options.add(a);
    a=new Option();
    a.value="20:00";
    a.text="20:00";
    selectId.options.add(a);

    }

    function setSelect(sltName,value)
    {
     alert("name:"+sltName);
     
     j$("select[@name="+sltName+"] option").each(function()
        {
         if(j$(this).val() == value){
          j$(this).attr("selected","selected");
         }
        }
        );        
    }

  • 相关阅读:
    cordova build android get Execution failed for task ':dexArmv7Debug'
    brew install memcache get Error: Formulae found in multiple taps
    快速激活JetBrains系列产品
    NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
    `libsass` bindings not found. Try reinstalling `node-sass`?
    Cordova 快速入门记录
    perl: warning: Setting locale failed.
    httpclient源码分析之 PoolingHttpClientConnectionManager 获取连接
    httpclient源码分析之MainClientExec
    fastjson从1.1.41升级到1.2.28的坑
  • 原文地址:https://www.cnblogs.com/mount/p/2284724.html
Copyright © 2011-2022 走看看