摘要:
一、前言-索引 ES5中新增的不少东西,了解之对我们写JavaScript会有不少帮助,比如数组这块,我们可能就不需要去有板有眼地for循环了。 ES5中新增了写数组方法,如下: 浏览器支持 Opera 11+ Firefox 3.6+ Safari 5+ Chrome 8+ Internet Ex 阅读全文
摘要:
<div contenteditable="true" class="ipt" placeholder="输入个人介绍,最多输入200个字"></div> 样式: /*为空时显示 element attribute content*/.ipt:empty:before{ content: attr( 阅读全文