Mobiscroll日期模式定制

时间:2017-03-27 20:17:53

标签: javascript mobiscroll

有一个mobiscroll实例来显示日期:

        $(document).ready(function () {                               
                $("#date").mobiscroll().date({
                    theme: 'wp',
                    mode: 'clickpick',
                    onChange: function (ins) {
                        console.log(JSON.stringify(ins));
                    }
                });
            });

目前,datepicker的格式如下:dd / mm / yyyy 如何交换订单才能看到mm / dd / yyyy?

1 个答案:

答案 0 :(得分:1)

defmodule MyApp do
  use Application

  def start(_type, _args) do
    import Supervisor.Spec

    children = [
      supervisor(MyApp.Repo, []),
      supervisor(MyApp.Endpoint, []),
      supervisor(MyApp.DynamicSupervisorThingy, [])
    ]
    opts = [strategy: :one_for_one, name: MyApp.Supervisor]
    start_val = Supervisor.start_link(children, opts)



    # --- Put things right here that I want to start ----
    MyApp.DynamicSupervisorThingy.add_children_dynamically()
    MyApp.SomeModule.do_some_thingy()
    MyApp.OtherModule.send_some_pings()
    if MIX_ENV == :prod do
      MyApp.YetAnother.prod_stuff_i_dont_want_in_dev()
    end


    start_val
  end
end

以下是更多信息的链接:

https://docs.mobiscroll.com/3-1-0/jquery/datetime#!localization-dateFormat