js检测浏览器是否支持标签的某属性

检测是否支持placeholder

var isSupport = 'placeholder' in document.createElement('input');

猜你喜欢

转载自blog.csdn.net/weixin_39612961/article/details/80922835