coolair
V2EX  ›  问与答

请教一个 require.js 的问题

  •  
  •   coolair · Aug 28, 2018 · 681 views
    This topic created in 2816 days ago, the information mentioned may be changed or developed.

    在 require.js 里初始化控件产生的 event,怎么用 jquery 的 clone(true, true)克隆不到呢?

    require(['test'], function (test) {
        test.initDateInput($("#date-input"));
    });
    

    然后#data-input 标签就会初始化成时间选择控件,有一系列的 events。 后面克隆这个标签,怎么克隆不到 events 呢,如果自己下一个 onclick 事件,却可以克隆到。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5544 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:36 · PVG 16:36 · LAX 01:36 · JFK 04:36
    ♥ Do have faith in what you're doing.