使用mobiscroll DATE,DateTimer在datepicker中设置重置值

时间:2015-08-12 11:21:28

标签: javascript javascript-events mobiscroll

代码:

         handler: function (event, inst) { 
        alert('Custom button clicked!'); 
         that.mobiscroll('setValue', ['0', '0', '0', '0']);
    } 
},

上面提到的代码部分不适用于日期选择器。对于格式 [01] - [aug] - [2015]

,预期结果显示为 [00] - [000] - [0000]

在MOBISCROLL日期(.mobiscroll()。date(.....))

完整代码:

$('#demo_date').mobiscroll().date({
    theme: theme,     // Specify theme like: theme: 'ios' or omit setting to use default 
    mode: mode,       // Specify scroller mode like: mode: 'mixed' or omit setting to use default 
    display: display, // Specify display mode like: display: 'bottom' or omit setting to use default 
    lang: lang,       // Specify language like: lang: 'pl' or omit setting to use default 
    headerText:'onset date picker',
    showLabel:true,
    dateFormat:'dd/M/yy',
    dateOrder:'ddMyy',
    dayText:'Day',
    monthText:'Month',
    yearText:'year',
    buttons: [ 
    { 
      text: 'reset',
      cssClass: 'dwb2 dwb-e dwb', 
      /*handler:'clear',*/
      handler: function (event, inst) { 
          alert('Custom button clicked!'); 
          that.mobiscroll('setValue', ['0', '0', '0', '0']);
      } 
    },
    { 
      text: 'cancel', 
      handler: 'cancel',         
      cssClass: 'dwb2 dwb-e dwb'
    } ,
    {
      text:'ok',
      handler:'set',
      cssClass:'dwb2 dwb-e dwb' 
    }
 ]              
   });

我提到了完整的代码部分和代码的某些部分无法正常工作

1 个答案:

答案 0 :(得分:0)

import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('host', username='myuser',password='mypass')
stdin, stdout, stderr =ssh.exec_command('echo $PATH')
print (stdout.readlines())