小编Vik*_*ire的帖子

Sencha 中的 Ext.Date.format()

我想要获取日期格式,如2017-04-20 00:00:00

目前我的代码是

this.ToDatePicker = Ext.create('Ext.form.field.Text', {
        xtype: 'textfield',
        name: 'name',
        labelAlign: 'top',
        fieldLabel: 'Date Time',
        value: Ext.Date.format(new Date(), "d-m-Y h:iA"),
        listeners: {
            scope: this,
            afterrender: function (c) {
                c.getEl().on('click', function (e) {
                    console.log(e.target)
                    NewCssCal_DisableAfterToday(Ext.get(e.target).dom.id, 'ddmmyyyy', 'dropdown', true, 12)
                });
            }
        }
    });
Run Code Online (Sandbox Code Playgroud)

需要更新Ext.Date.format(new Date(), "d-m-Y h:iA") 以获得我需要的日期格式。你有什么想法吗?

javascript extjs sencha-touch-2

2
推荐指数
1
解决办法
2万
查看次数

有什么方法可以自定义Google的自动完成地址结果?

我要自定义自动建议结果。我想在结果顶部添加两个以上的地址。是否可以使用Google API?为了获得更多理解,我在这里粘贴了我的应用程序屏幕。我在那输入地址。它显示了预测的地址,如何在结果顶部再添加2个地址。

在此处输入图片说明

javascript google-maps geolocation google-maps-api-3

1
推荐指数
1
解决办法
1314
查看次数