firstElementChild doesn't work in Internet Explorer 7…what are my options?

后端 未结 0 1226
小鲜肉
小鲜肉 2021-02-14 17:24

Consider the JavaScript below:

var v;
if (this.children.length > 0) {
    v = this.firstElementChild.value;
}

This works in modern versions

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