jQuery empty在IE下不支持 我用的jQuery版本是1.4.1 $("#test").text("请输入内容.."); $("#test").empty(); 不会把文字清除掉 解决方案,用原始的JS实现 $("#test")[0].innerHTML="";