Why is an if statement returning false when the div's style.display is actually 'block'?

后端 未结 0 1319
慢半拍i
慢半拍i 2021-01-06 10:06

I am creating a react app with createreactapp. I have this if statement that checks for the css display property of a div whose id is step1 as below:

if (step         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题