V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
airbasic
V2EX  ›  问与答

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

  •  
  •   airbasic · Apr 14, 2016 · 2201 views
    This topic created in 3677 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   ·   3201 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:57 · PVG 18:57 · LAX 03:57 · JFK 06:57
    ♥ Do have faith in what you're doing.