相关考题
-
单项选择题
a标签的href属性会让a标签点击时跳转页面,怎么阻止这种行为?()
A.preventDefault()
B.stopPropagation()
C.type=true
D.以上都不对 -
单项选择题
Symbol值通过()生成。这就是说,对象的属性名现在可以有两种类型,一种是原来就有的字符串,另一种就是新增的Symbol类型。
A.对象
B.函数
C.string函数
D.Symbol函数 -
单项选择题
function bark() {console.log("Woof!");}bark.animal = "dog";以上代码定义会发生什么?()
A.Nothing, this is totally fine!
B.SyntaxError. You cannot add properties to a function this way.
C.undefined
D.ReferenceError
