| |

VerySource

 Forgot password?
 Register
Search
View: 612|Reply: 1

Anxious, the master comes in to see Ah.

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-5 14:00:01
| Show all posts |Read mode
var TDName = "TDFilter" .concat (Num);
TDName.style.display = "block";

Why is my alert (TDName) displayed correctly, but it does n’t work when I use style?

For example, my Num is 2, and after connecting, my TDName is TDFilter2, and I have this TD on my page, but why is the following sentence wrong? ? ?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-25 18:00:01
| Show all posts
Get it.
With document.getElementById (TDName) .style.display = "block";
Alright, haha.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list