直接上代码: $(document).ready(function () { var doc = document, textareas = doc.getElementsByTagName('textarea'), supportPlaceholder = 'placeholder' in doc.createElement('textarea'), placeholder = function (textarea) { var text = textarea.getAttribute('pl