vde*_*nne 8 javascript ecmascript-6
我知道我们可以使用 const a = document.createElement('a').
const a = document.createElement('a')
但我正在尝试的是 const a = new HTMLAnchorElement()
const a = new HTMLAnchorElement()
但是这会抛出以下异常: Uncaught TypeError: Illegal constructor
Uncaught TypeError: Illegal constructor
我究竟做错了什么 ?
归档时间:
8 年,8 月 前
查看次数:
1744 次
最近记录: