Trying to use variable

后端 未结 0 1671
半阙折子戏
半阙折子戏 2021-01-13 08:54

I am trying to use x as a variable in:

var x = "tag";

alert(document.getElementById(x).style.fontSize);

What is the proper syntax?

Than

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