1.head引入js ,css
<script type="text/javascript" src="./resources/js/jquery.js"></script>
<script type="text/javascript" src="./resources/js/jquery.textareafullscreen.js"></script>
<link href="./resources/css/textareafullscreen.css" rel="stylesheet" type="text/css" />
<script>
$(document).ready(function() {
$('#custom').textareafullscreen();
});
</script>
<div>
<textarea id="custom"></textarea>
</div>