airbasic
V2EX  ›  问与答

这样的代码 想要对 img 的 Attribute change 下断点,请问要怎样做?

  •  
  •   airbasic · Apr 14, 2016 · 2329 views
    This topic created in 3741 days ago, the information mentioned may be changed or developed.
    <html> <meta charset="utf-8"> <body> <script> var test = document.getElementById('test'); var asrc = test.src; test.setAttribute('data-src',asrc); </script> </body> </html>

    在 f12 右键下了 attribute change 断点之后,刷新之后并没有反应

    1 replies    2016-04-14 17:43:11 +08:00
    airbasic
        1
    airbasic  
    OP
       Apr 14, 2016
    代码乱成一锅粥了,总之就是对这个图片增加一个属性。如何下断点 0.0
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6039 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 02:28 · PVG 10:28 · LAX 19:28 · JFK 22:28
    ♥ Do have faith in what you're doing.