console:warn() 静态方法
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
语法
js
warn(obj1)
warn(obj1, /* …, */ objN)
warn(msg)
warn(msg, subst1, /* …, */ substN)
参数
规范
Specification |
---|
Console Standard # warn |
浏览器兼容性
BCD tables only load in the browser