判断是否支持Placeholder属性
作者:andy0012017.08.03来源:Web前端之家浏览:10957评论:0
JQuery 判断是否支持placeholder属性的方法。
//Placeholder兼容性
function isPlaceholer(){
var input = document.createElement('input');
return "placeholder" in input;
}
该函数的结果返回 true or false。
温馨提示:本文作者系
,经
Web前端之家编辑修改或补充,转载请注明出处和
本文链接:https://www.jiangweishan.com/article/svg1483372800813.html
网友评论文明上网理性发言 已有0人参与
发表评论: