paulw54jrn
V2EX  ›  问与答

请教个 JS 动态加载代码的问题..

  •  
  •   paulw54jrn · Oct 20, 2014 · 3614 views
    This topic created in 4249 days ago, the information mentioned may be changed or developed.
    JS新手,项目有需要就硬着头皮上了..

    lpTag会在加载时发送ajax请求,然后把vars.send()方法注入到自身.

    需要运行以下代码,但是在运行vars.send()的时候send方法还没有被创建. 项目其他要求导致了不能用jQuery的when方法. 用setTimeout()可能过不了code review. 请问下有别的办法吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1087 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:58 · PVG 06:58 · LAX 15:58 · JFK 18:58
    ♥ Do have faith in what you're doing.