IE8 placeholder不支持的兼容性处理

引入

<script type="text/javascript" src="<%=path%>/common/js/jquery/jquery.min.js"></script>

<script type="text/javascript" src="<%=path%>/common/js/jquery/jquery.placeholder.min.js" ></script>

 

$(function(){

$('input').placeholder();

}

posted @ 2018-05-16 14:09  Huangmoumou  阅读(193)  评论(0编辑  收藏  举报