文章
判断浏览器支不支持一个属性
分类:javascript

//判断是否支持placeholder
function isPlaceholer() {
var input = document.createElement(‘input’);
return “placeholder” in input;
}
文章

//判断是否支持placeholder
function isPlaceholer() {
var input = document.createElement(‘input’);
return “placeholder” in input;
}