//判断是否支持placeholder

function isPlaceholer() {

var input = document.createElement(‘input’);

return “placeholder” in input;

}