airbasic
V2EX  ›  问与答

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

  •  
  •   airbasic · Apr 14, 2016 · 2251 views
    This topic created in 3698 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   ·   2577 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:42 · PVG 19:42 · LAX 04:42 · JFK 07:42
    ♥ Do have faith in what you're doing.