paulw54jrn
V2EX  ›  问与答

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

  •  
  •   paulw54jrn · Oct 20, 2014 · 3564 views
    This topic created in 4223 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   ·   3781 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 04:43 · PVG 12:43 · LAX 21:43 · JFK 00:43
    ♥ Do have faith in what you're doing.