摘要:
html中的placeholder属性很好用,但是不支持神奇的IE,下面是解决方法:先给出 Demo// This adds 'placeholder' to the items listed in the jQuery .support object.jQuery(function() { jQuery.support.placeholder = false; test = document.createElement('input'); if('placeholder' in test) jQuery.support.placeholder 阅读全文