paulw54jrn
V2EX  ›  问与答

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

  •  
  •   paulw54jrn · Oct 20, 2014 · 3602 views
    This topic created in 4244 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   ·   3089 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 15:00 · PVG 23:00 · LAX 08:00 · JFK 11:00
    ♥ Do have faith in what you're doing.